diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-07-25 22:24:22 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 09:06:15 -0700 |
commit | a4932d2da72af14eeea99e466117bdb767d111c7 (patch) | |
tree | c4bcd130481d05f547fd9853d3a12b11f3bf7913 /app/services/notification_recipient_service.rb | |
parent | b69e81c3e993939228046516be897233dcaf4442 (diff) | |
download | gitlab-ce-a4932d2da72af14eeea99e466117bdb767d111c7.tar.gz |
don't elevate to :watch if no @custom_action is provided
Diffstat (limited to 'app/services/notification_recipient_service.rb')
-rw-r--r-- | app/services/notification_recipient_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notification_recipient_service.rb b/app/services/notification_recipient_service.rb index f944c1ae7f4..20d8a06903c 100644 --- a/app/services/notification_recipient_service.rb +++ b/app/services/notification_recipient_service.rb @@ -52,7 +52,7 @@ class NotificationRecipientService @notification_level ||= case raw_notification_level when :custom - if !@custom_action || notification_setting.event_enabled?(@custom_action) + if @custom_action && notification_setting.event_enabled?(@custom_action) :watch else :custom |