Skip to content
Snippets Groups Projects
Commit 3208dad1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Respect group membership in notification service

parent 99eb9607
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
 
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