diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-06-14 14:37:41 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-06-14 17:51:17 -0300 |
commit | 2d29ca85e86e6865f08540d351902641a0d0b4d5 (patch) | |
tree | 47c4d0de5a3576d452838ffcb51f9395dab0fc10 /app/finders/notes_finder.rb | |
parent | c6ed8edf8e29ca37f64df07602f13fc7a34abf58 (diff) | |
download | gitlab-ce-2d29ca85e86e6865f08540d351902641a0d0b4d5.tar.gz |
Fix notes on confidential issues through JSON to users without access
Diffstat (limited to 'app/finders/notes_finder.rb')
-rw-r--r-- | app/finders/notes_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/notes_finder.rb b/app/finders/notes_finder.rb index ee14ac60fb4..0b7832e6583 100644 --- a/app/finders/notes_finder.rb +++ b/app/finders/notes_finder.rb @@ -12,7 +12,7 @@ class NotesFinder when "commit" project.notes.for_commit_id(target_id).non_diff_notes when "issue" - project.issues.find(target_id).notes.inc_author + project.issues.visible_to_user(current_user).find(target_id).notes.inc_author when "merge_request" project.merge_requests.find(target_id).mr_and_commit_notes.inc_author when "snippet", "project_snippet" |