add delete button to the files in broadcast page

This commit is contained in:
Bilal
2020-07-22 18:16:14 +02:00
parent 8f13589c55
commit 86e441eebd
13 changed files with 116 additions and 26 deletions

View File

@@ -18,4 +18,8 @@ class BroadcastPolicy < ApplicationPolicy
def update?
true
end
def destroy_file?
user.manager? || user.account_manager?
end
end