From eacdd5080a4f62442e7ee885d4053562a4bb8acc Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Wed, 19 Aug 2015 14:58:41 -0700 Subject: Fix Basemailer#can? --- app/mailers/base_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1