17 lines
245 B
Ruby
17 lines
245 B
Ruby
class LeaderSkillPolicy < 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
|