allow user to star/unstar broadcast recordings

This commit is contained in:
Bilal
2020-08-25 00:21:42 +03:00
parent a493076f9b
commit 73b48c5a5b
12 changed files with 160 additions and 29 deletions

View File

@@ -3,7 +3,11 @@ class BroadcastRecordingPolicy < ApplicationPolicy
if user.nil? || user.user.nil?
return false
end
user.manager? || user.account_manager?
end
def update?
destroy?
end
end