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

special-case blocked users

parent 6070145b
...@@ -30,6 +30,7 @@ class BasePolicy ...@@ -30,6 +30,7 @@ class BasePolicy
end end
def abilities def abilities
return [] if @user && @user.blocked?
return anonymous_abilities if @user.nil? return anonymous_abilities if @user.nil?
collect_rules { rules } collect_rules { rules }
end 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