diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-08-23 03:45:31 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-08-30 21:39:22 +0300 |
commit | 35779223a69c22806bbb48d70086c7fb9a23f513 (patch) | |
tree | 2f681066da28537e12de241d12ec7c3b0961fb08 /app/policies/base_policy.rb | |
parent | 6070145bebad0a8284b4fe4bb7a1e2b97f03ab1b (diff) |
special-case blocked users
Diffstat (limited to 'app/policies/base_policy.rb')
-rw-r--r-- | app/policies/base_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/base_policy.rb b/app/policies/base_policy.rb index 6d38e2eaa73..a6fd9786ae7 100644 --- a/app/policies/base_policy.rb +++ b/app/policies/base_policy.rb @@ -30,6 +30,7 @@ class BasePolicy end def abilities + return [] if @user && @user.blocked? return anonymous_abilities if @user.nil? collect_rules { rules } end |