Disable actions on reports that have already been taken (#31773)
This commit is contained in:
@@ -73,6 +73,14 @@ class Admin::AccountAction
|
||||
end
|
||||
end
|
||||
|
||||
def disabled_types_for_account(account)
|
||||
if account.suspended?
|
||||
%w(silence suspend)
|
||||
elsif account.silenced?
|
||||
%w(silence)
|
||||
end
|
||||
end
|
||||
|
||||
def i18n_scope
|
||||
:activerecord
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user