diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 06:09:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-24 06:09:05 +0300 |
commit | 07d0374b204881f2bd64ed897e4bbab19f180cc9 (patch) | |
tree | ed7837a31c0edae5e8ec876626b0bf3ecb3db68c /lib/api/helpers | |
parent | 2ed3b0abccc8de391f1a9de2bc5785d3e0f5b018 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers')
-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 3c453953e37..bed0345a608 100644 --- a/lib/api/helpers/notes_helpers.rb +++ b/lib/api/helpers/notes_helpers.rb @@ -62,7 +62,7 @@ module API def get_note(noteable, note_id) note = noteable.notes.with_metadata.find(note_id) - can_read_note = note.visible_for?(current_user) + can_read_note = note.readable_by?(current_user) if can_read_note present note, with: Entities::Note |