18 lines
246 B
Ruby
18 lines
246 B
Ruby
|
class PassiveSkillPolicy < 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
|