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

14 lines
186 B
Ruby
Raw Normal View History

2015-10-14 11:24:15 -04:00
class EvidencePolicy < ApplicationPolicy
def index?
true
end
def create?
user.moderator? || user.admin?
end
def destroy?
user.moderator? || user.admin?
end
end