diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-08-19 14:58:41 -0700 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-08-19 14:58:41 -0700 |
commit | eacdd5080a4f62442e7ee885d4053562a4bb8acc (patch) | |
tree | 1945ff5721ca530fe4c8021ab001ff6120ea7c68 /app/mailers | |
parent | 1202875dff5a120c27842b80994b19a682d080f5 (diff) | |
download | gitlab-ce-eacdd5080a4f62442e7ee885d4053562a4bb8acc.tar.gz |
Fix Basemailer#can?
Diffstat (limited to 'app/mailers')
-rw-r--r-- | app/mailers/base_mailer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/base_mailer.rb b/app/mailers/base_mailer.rb index 8299a4140dc..aedb0889185 100644 --- a/app/mailers/base_mailer.rb +++ b/app/mailers/base_mailer.rb @@ -13,7 +13,7 @@ class BaseMailer < ActionMailer::Base end def can? - Ability.abilities.allowed?(user, action, subject) + Ability.abilities.allowed?(current_user, action, subject) end private |