summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Derichs <pderichs@gitlab.com>2019-08-09 16:23:09 +0200
committerPatrick Derichs <pderichs@gitlab.com>2019-08-09 16:23:09 +0200
commit8f6ce48d8e40c85f78942551c511ec0d2ae2ada9 (patch)
tree609b22446391ef14a778e9c8cc7998da68a051f4
parentefa44f6ff5d3168ff64012c7f672dbdff251728e (diff)
downloadgitlab-ce-8f6ce48d8e40c85f78942551c511ec0d2ae2ada9.tar.gz
Revert parameter change to fix spec
-rw-r--r--lib/api/helpers/notes_helpers.rb2
1 files changed, 1 insertions, 1 deletions
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