Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2017-08-01 21:42:59 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2017-08-03 19:07:18 +0300
commite5496e1e8ef3fa82e6cefcababcb9ad3b55a11c3 (patch)
treed47882c50b74844eb05fed4dfb49a694baa23992 /app/models/notification_recipient.rb
parent4af2c647132bee8b2ef87d0d190936449759071c (diff)
use the accessor for `type`
Diffstat (limited to 'app/models/notification_recipient.rb')
-rw-r--r--app/models/notification_recipient.rb2
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?