This commit is contained in:
Bilal
2020-07-22 23:51:55 +02:00
parent 86e441eebd
commit f8bdc5bce5
5 changed files with 8 additions and 3 deletions

View File

@@ -20,6 +20,10 @@ class BroadcastPolicy < ApplicationPolicy
end
def destroy_file?
if user.nil? || user.user.nil?
return false
end
user.manager? || user.account_manager?
end
end