1
0
Fork 0
dokkan-data-rails/app/policies/character_policy.rb

18 lines
243 B
Ruby
Raw Permalink Normal View History

2015-10-08 15:18:21 -04:00
class CharacterPolicy < ApplicationPolicy
def index?
true
end
def create?
user.moderator? || user.admin?
end
def update?
user.moderator? || user.admin?
end
def destroy?
user.moderator? || user.admin?
end
end