Disable actions on reports that have already been taken (#31773)
This commit is contained in:
parent
1fed11cfa7
commit
fd7fc7bdc3
4 changed files with 28 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue