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?
|
2019-01-14 12:57:31 +01:00
|
|
|
user.admin? or record.user == user
|
2016-03-23 18:39:41 +01:00
|
|
|
end
|
|
|
|
end
|