about summary refs log tree commit diff
path: root/app/policies
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-12-11 19:28:03 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-12-11 19:28:03 +0100
commitcf6ee4ff243b66b2b53faaceed1266999b84c3c1 (patch)
tree7b4730ca3d3a069d8b0fdd2670f6f84c4d4b98ee /app/policies
parent720daa81435b4c632cdf7b64044cf1ee59af977a (diff)
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
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/account_policy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/account_policy.rb b/app/policies/account_policy.rb
index efabe80d0..07bae68ef 100644
--- a/app/policies/account_policy.rb
+++ b/app/policies/account_policy.rb
@@ -33,6 +33,10 @@ class AccountPolicy < ApplicationPolicy
     staff?
   end
 
+  def remove_header?
+    staff?
+  end
+
   def subscribe?
     admin?
   end