diff --git a/lib/api/helpers/notes_helpers.rb b/lib/api/helpers/notes_helpers.rb index 668c33a39bad00a09319f54b44d080b839a0995c..924c763ed0357af3f47ddcf30969b8f269be6152 100644 --- a/lib/api/helpers/notes_helpers.rb +++ b/lib/api/helpers/notes_helpers.rb @@ -59,7 +59,7 @@ module API end def get_note(noteable, note_id) - note = noteable.notes.with_metadata.find(note_id) + note = noteable.notes.with_metadata.find(params[:note_id]) can_read_note = note.visible_for?(current_user) if can_read_note