diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 1a999a6..ac2820f 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -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 -- libgit2 0.21.2