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