Add admin ability to remove an user's header image (#9495)

* Fix markup in admin/accounts/:id table for avatar

* Add admin ability to remove an user's header image
This commit is contained in:
ThibG 2018-12-11 19:28:03 +01:00 committed by Eugen Rochko
parent 720daa8143
commit cf6ee4ff24
5 changed files with 26 additions and 3 deletions

View file

@ -33,6 +33,10 @@ class AccountPolicy < ApplicationPolicy
staff?
end
def remove_header?
staff?
end
def subscribe?
admin?
end