2020-08-03 21:52:04 +00:00
|
|
|
class BroadcastRecordingPolicy < ApplicationPolicy
|
|
|
|
|
def destroy?
|
|
|
|
|
if user.nil? || user.user.nil?
|
|
|
|
|
return false
|
|
|
|
|
end
|
2020-08-25 00:21:42 +03:00
|
|
|
|
2020-08-03 21:52:04 +00:00
|
|
|
user.manager? || user.account_manager?
|
|
|
|
|
end
|
2020-08-25 00:21:42 +03:00
|
|
|
|
|
|
|
|
def update?
|
|
|
|
|
destroy?
|
|
|
|
|
end
|
2020-08-03 21:52:04 +00:00
|
|
|
end
|