提交 c644dd01 编写于 作者: D Douwe Maan

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.
上级 7633d602
...@@ -130,9 +130,9 @@ class NotificationService ...@@ -130,9 +130,9 @@ class NotificationService
# Add all users participating in the thread (author, assignee, comment authors) # Add all users participating in the thread (author, assignee, comment authors)
participants = participants =
if target.is_a?(Commit) if target.is_a?(Commit)
target.participants(note.project) target.participants(note.project, note.author)
elsif target.respond_to?(:participants) elsif target.respond_to?(:participants)
target.participants target.participants(note.author)
else else
note.mentioned_users note.mentioned_users
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册