提交 3208dad1 编写于 作者: D Dmitriy Zaporozhets

Respect group membership in notification service

上级 99eb9607
......@@ -174,6 +174,10 @@ class NotificationService
tm = project.users_projects.find_by_user_id(user.id)
if !tm && project.group
tm = project.users_groups.find_by_user_id(user.id)
end
# reject users who globally disabled notification and has no membership
next user.notification.disabled? unless tm
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册