14 lines
186 B
Ruby
14 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
|