diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-15 17:07:08 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-15 17:57:31 +0200 |
commit | c644dd01a41714bba7b77a3f5aa7997e6eee15fd (patch) | |
tree | adf121aa118014ed52236fef797067c4e989acdb | |
parent | 7633d60268782704375fa2cf9a0fbb9a2ad2ec06 (diff) | |
download | gitlab-ce-c644dd01a41714bba7b77a3f5aa7997e6eee15fd.tar.gz |
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.
-rw-r--r-- | app/services/notification_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 1337dca8354..c7e45a2c2c7 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -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 |