allow user to star/unstar broadcast recordings

This commit is contained in:
Bilal
2020-08-25 00:21:42 +03:00
committed by Senad Uka
parent 896cec2259
commit 4a09406120
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