1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00
fab-manager/app/policies/reservation_policy.rb
2019-09-09 17:37:54 +02:00

10 lines
144 B
Ruby

class ReservationPolicy < ApplicationPolicy
def create?
user.admin?
end
def update?
user.admin? or record.user == user
end
end