Commit 3208dad1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Respect group membership in notification service

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment