Add logging of account data removal (#40572)

This commit is contained in:
Claire committed 2026-09-24 16:29:39 +02:00
1 parent 17545f9854
commit 01b69a5743
4 files changed
+5 -1

No files matched your search

@@ -72,6 +72,7 @@ module Admin
def destroy
authorize @account, :destroy?
Admin::AccountDeletionWorker.perform_async(@account.id)
log_action :destroy, @account
redirect_to admin_account_path(@account.id), notice: I18n.t('admin.accounts.destroyed_msg', username: @account.acct)
end