Respect group membership in notification service
This commit is contained in:
parent
99eb96075d
commit
3208dad1e7
1 changed files with 4 additions and 0 deletions
|
@ -174,6 +174,10 @@ class NotificationService
|
||||||
|
|
||||||
tm = project.users_projects.find_by_user_id(user.id)
|
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
|
# reject users who globally disabled notification and has no membership
|
||||||
next user.notification.disabled? unless tm
|
next user.notification.disabled? unless tm
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue