Implement the ability for an Administrator or Moderator to remove an account avatar (#6998)
This commit is contained in:
committed by
Eugen Rochko
parent
4fd71accd4
commit
e7a1716701
@ -29,6 +29,10 @@ class AccountPolicy < ApplicationPolicy
|
||||
admin?
|
||||
end
|
||||
|
||||
def remove_avatar?
|
||||
staff?
|
||||
end
|
||||
|
||||
def subscribe?
|
||||
admin?
|
||||
end
|
||||
|
Reference in New Issue
Block a user