Only send note notifications to people accessible by the note author.

Should not make a difference most of the time, since if they're participating in the thread, they have access to the project.
This commit is contained in:
Douwe Maan 2015-04-15 17:07:08 +02:00
parent 7633d60268
commit c644dd01a4
1 changed files with 2 additions and 2 deletions

View File

@ -130,9 +130,9 @@ class NotificationService
# Add all users participating in the thread (author, assignee, comment authors)
participants =
if target.is_a?(Commit)
target.participants(note.project)
target.participants(note.project, note.author)
elsif target.respond_to?(:participants)
target.participants
target.participants(note.author)
else
note.mentioned_users
end