Commit 35779223 authored by http://jneen.net/'s avatar http://jneen.net/

special-case blocked users

parent 6070145b
......@@ -30,6 +30,7 @@ class BasePolicy
end
def abilities
return [] if @user && @user.blocked?
return anonymous_abilities if @user.nil?
collect_rules { rules }
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment