mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
19 lines
312 B
Ruby
19 lines
312 B
Ruby
class ProofOfIdentityFilePolicy < ApplicationPolicy
|
|
|
|
def index?
|
|
user.privileged?
|
|
end
|
|
|
|
def create?
|
|
user.privileged? or record.user_id == user.id
|
|
end
|
|
|
|
def update?
|
|
user.privileged? or record.user_id == user.id
|
|
end
|
|
|
|
def download?
|
|
user.privileged? or record.user_id == user.id
|
|
end
|
|
end
|