0
0
Fork 0

Disable actions on reports that have already been taken (#31773)

This commit is contained in:
Emelia Smith 2024-09-06 14:50:30 +02:00 committed by GitHub
parent 1fed11cfa7
commit fd7fc7bdc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 3 deletions

View file

@ -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