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

This commit is contained in:
Emelia Smith authored and GitHub committed 2024-09-06 12:50:30 +00:00
1 parent 1fed11cfa7
commit fd7fc7bdc3
4 files changed
+28 -3

No files matched your search

+8
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