Skip to content
Snippets Groups Projects
Commit c644dd01 authored by Douwe Maan's avatar Douwe Maan
Browse files

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.
parent 7633d602
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment