Files
old-holivud2/app/policies/acquired_media_release_policy.rb
2020-08-20 06:50:51 +02:00

38 lines
412 B
Ruby

class AcquiredMediaReleasePolicy < ApplicationPolicy
def create?
true
end
def show?
true
end
def update?
!record.native?
end
def destroy?
user.manager? || user.account_manager?
end
def tag_multiple?
true
end
def edit_files?
true
end
def download_multiple?
true
end
def review?
user.account_manager?
end
def approve?
review?
end
end