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

13 lines
186 B
Ruby

class EvidencePolicy < ApplicationPolicy
def index?
true
end
def create?
user.moderator? || user.admin?
end
def destroy?
user.moderator? || user.admin?
end
end