diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-07-26 08:24:22 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 19:06:15 +0300 |
commit | a4932d2da72af14eeea99e466117bdb767d111c7 (patch) | |
tree | c4bcd130481d05f547fd9853d3a12b11f3bf7913 /app/services | |
parent | b69e81c3e993939228046516be897233dcaf4442 (diff) |
don't elevate to :watch if no @custom_action is provided
Diffstat (limited to 'app/services')
-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 |