Add ability to delete files uploaded for settings in admin UI (#13192)
* Allow deleting site uploads * Refactor and move links into hints * Fix i18n tests * Fix HTML output of site_upload_delete_hint
This commit is contained in:
parent
4063f9f278
commit
2423d2f677
6 changed files with 43 additions and 3 deletions
|
@ -8,4 +8,8 @@ class SettingsPolicy < ApplicationPolicy
|
|||
def show?
|
||||
admin?
|
||||
end
|
||||
|
||||
def destroy?
|
||||
admin?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue