fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user