Add support for reversible suspensions through ActivityPub (#14989)
This commit is contained in:
parent
ee8cf246cf
commit
3134691948
47 changed files with 1049 additions and 204 deletions
|
@ -18,11 +18,11 @@ class AccountPolicy < ApplicationPolicy
|
|||
end
|
||||
|
||||
def destroy?
|
||||
record.suspended? && record.deletion_request.present? && admin?
|
||||
record.suspended_temporarily? && admin?
|
||||
end
|
||||
|
||||
def unsuspend?
|
||||
staff?
|
||||
staff? && record.suspension_origin_local?
|
||||
end
|
||||
|
||||
def sensitive?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue