summaryrefslogtreecommitdiff
path: root/app/mailers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-19 14:58:41 -0700
committerDouwe Maan <douwe@gitlab.com>2015-08-19 14:58:41 -0700
commiteacdd5080a4f62442e7ee885d4053562a4bb8acc (patch)
tree1945ff5721ca530fe4c8021ab001ff6120ea7c68 /app/mailers
parent1202875dff5a120c27842b80994b19a682d080f5 (diff)
downloadgitlab-ce-eacdd5080a4f62442e7ee885d4053562a4bb8acc.tar.gz
Fix Basemailer#can?
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/base_mailer.rb2
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