diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-08-01 21:42:59 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-08-03 19:07:18 +0300 |
commit | e5496e1e8ef3fa82e6cefcababcb9ad3b55a11c3 (patch) | |
tree | d47882c50b74844eb05fed4dfb49a694baa23992 /app/models/notification_recipient.rb | |
parent | 4af2c647132bee8b2ef87d0d190936449759071c (diff) |
use the accessor for `type`
Diffstat (limited to 'app/models/notification_recipient.rb')
-rw-r--r-- | app/models/notification_recipient.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/notification_recipient.rb b/app/models/notification_recipient.rb index 6a8287c88b8..c307f0ad5b6 100644 --- a/app/models/notification_recipient.rb +++ b/app/models/notification_recipient.rb @@ -54,7 +54,7 @@ class NotificationRecipient return false if %i[watch participating].include?(notification_level) && excluded_watcher_action? - return false unless NotificationSetting.levels[notification_level] <= NotificationSetting.levels[type] + return false unless NotificationSetting.levels[notification_level] <= NotificationSetting.levels[@type] return false if unsubscribed? |