diff options
author | Patrick Derichs <pderichs@gitlab.com> | 2019-08-09 16:23:09 +0200 |
---|---|---|
committer | Patrick Derichs <pderichs@gitlab.com> | 2019-08-09 16:23:09 +0200 |
commit | 8f6ce48d8e40c85f78942551c511ec0d2ae2ada9 (patch) | |
tree | 609b22446391ef14a778e9c8cc7998da68a051f4 | |
parent | efa44f6ff5d3168ff64012c7f672dbdff251728e (diff) | |
download | gitlab-ce-8f6ce48d8e40c85f78942551c511ec0d2ae2ada9.tar.gz |
Revert parameter change to fix spec
-rw-r--r-- | lib/api/helpers/notes_helpers.rb | 2 |
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 |