From 8f6ce48d8e40c85f78942551c511ec0d2ae2ada9 Mon Sep 17 00:00:00 2001 From: Patrick Derichs Date: Fri, 9 Aug 2019 16:23:09 +0200 Subject: [PATCH] Revert parameter change to fix spec --- lib/api/helpers/notes_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/helpers/notes_helpers.rb b/lib/api/helpers/notes_helpers.rb index 668c33a39ba..924c763ed03 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 -- GitLab