1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/policies/reservation_policy.rb

10 lines
144 B
Ruby
Raw Normal View History

2016-03-23 18:39:41 +01:00
class ReservationPolicy < ApplicationPolicy
2019-09-09 17:37:54 +02:00
def create?
user.admin?
end
2016-03-23 18:39:41 +01:00
def update?
user.admin? or record.user == user
2016-03-23 18:39:41 +01:00
end
end