rosa-build/app/policies/user_policy.rb

15 lines
157 B
Ruby
Raw Normal View History

2015-03-12 22:43:13 +00:00
class UserPolicy < ApplicationPolicy
def write?
record == user
end
def update?
record == user
end
2015-03-12 22:43:13 +00:00
def banned?
!is_banned?
end
end