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:
authorDouwe Maan <douwe@gitlab.com>2015-08-20 00:58:41 +0300
committerDouwe Maan <douwe@gitlab.com>2015-08-20 00:58:41 +0300
commiteacdd5080a4f62442e7ee885d4053562a4bb8acc (patch)
tree1945ff5721ca530fe4c8021ab001ff6120ea7c68 /app/mailers
parent1202875dff5a120c27842b80994b19a682d080f5 (diff)
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