diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-04-09 07:19:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 07:19:52 +0200 |
commit | 654f79d2b1f70324a756a1d981e48fcaa8245531 (patch) | |
tree | d39ca9eb75286d9e45dbdb6bbe81ef9324fc9297 /app/controllers | |
parent | c03f926cf373d68922ea3d3324263d38355befd9 (diff) |
Fix permission denied bug on approve all/reject all pending accounts (#10519)
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/admin/pending_accounts_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/admin/pending_accounts_controller.rb b/app/controllers/admin/pending_accounts_controller.rb index f145108b3..2ea7785fc 100644 --- a/app/controllers/admin/pending_accounts_controller.rb +++ b/app/controllers/admin/pending_accounts_controller.rb @@ -18,12 +18,12 @@ module Admin end def approve_all - Form::AccountBatch.new(account_ids: User.pending.pluck(:account_id), action: 'approve').save + Form::AccountBatch.new(current_account: current_account, account_ids: User.pending.pluck(:account_id), action: 'approve').save redirect_to admin_pending_accounts_path(current_params) end def reject_all - Form::AccountBatch.new(account_ids: User.pending.pluck(:account_id), action: 'reject').save + Form::AccountBatch.new(current_account: current_account, account_ids: User.pending.pluck(:account_id), action: 'reject').save redirect_to admin_pending_accounts_path(current_params) end |