diff options
author | 🙈 jacopo beschi 🙉 <intrip@gmail.com> | 2018-02-14 15:01:12 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-02-14 15:01:12 +0300 |
commit | 1f3849b00fcfad54c4b0fe1e9a185d7bddda8f4c (patch) | |
tree | 987ec395b8aa1e57baf38c80e265f216993652ed /app/models/member.rb | |
parent | 1c91c4e3f7009d6e50ba046aff7b672a0f761d41 (diff) |
Resolve "Remove notification settings for groups and projects you were previously a member of"
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index c47145667b5..2d17795e62d 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -314,7 +314,7 @@ class Member < ActiveRecord::Base end def notification_setting - @notification_setting ||= user.notification_settings_for(source) + @notification_setting ||= user&.notification_settings_for(source) end def notifiable?(type, opts = {}) |