summaryrefslogtreecommitdiff
path: root/app/services/notification_service.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-29 13:08:30 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-30 10:44:20 +0200
commit08b3d7f6ef23b7a8a83c7e71e2d04f6416e73406 (patch)
treeed350c2aa283545df35c93d46f7771dbf1900197 /app/services/notification_service.rb
parent855b2820c16c6e569d5c38b7def8ead18c86cecd (diff)
downloadgitlab-ce-08b3d7f6ef23b7a8a83c7e71e2d04f6416e73406.tar.gz
Refactor notification helper and fix notification service
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/services/notification_service.rb')
-rw-r--r--app/services/notification_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb
index 9628843c230..23f211dfcd2 100644
--- a/app/services/notification_service.rb
+++ b/app/services/notification_service.rb
@@ -352,7 +352,7 @@ class NotificationService
setting = user.notification_settings.find_by(source: project)
if !setting && project.group
- setting = user.notification_settings.find_by(source: group)
+ setting = user.notification_settings.find_by(source: project.group)
end
# reject users who globally set mention notification and has no setting per project/group