2020-08-03 21:52:04 +00:00
|
|
|
class BroadcastRecordingPolicy < ApplicationPolicy
|
2020-08-31 18:19:00 +02:00
|
|
|
def create?
|
|
|
|
|
true
|
|
|
|
|
end
|
|
|
|
|
|
2020-08-03 21:52:04 +00:00
|
|
|
def destroy?
|
|
|
|
|
if user.nil? || user.user.nil?
|
|
|
|
|
return false
|
|
|
|
|
end
|
2020-08-31 18:19:00 +02:00
|
|
|
|
2020-08-03 21:52:04 +00:00
|
|
|
user.manager? || user.account_manager?
|
|
|
|
|
end
|
2020-08-31 18:19:00 +02:00
|
|
|
|
|
|
|
|
def edit?
|
2020-09-06 21:42:50 +02:00
|
|
|
true
|
2020-08-31 18:19:00 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def update?
|
2020-09-06 21:42:50 +02:00
|
|
|
true
|
2020-08-31 18:19:00 +02:00
|
|
|
end
|
2020-08-03 21:52:04 +00:00
|
|
|
end
|