Do not distribute Delete when rejecting unapproved accounts (#10321)
This commit is contained in:
parent
d041b7a1e7
commit
1217185cfa
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ module Admin
|
|||
|
||||
def reject
|
||||
authorize @account.user, :reject?
|
||||
SuspendAccountService.new.call(@account, including_user: true, destroy: true)
|
||||
SuspendAccountService.new.call(@account, including_user: true, destroy: true, skip_distribution: true)
|
||||
redirect_to admin_accounts_path(pending: '1')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue