Skip to content
Snippets Groups Projects
Unverified Commit 654f79d2 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix permission denied bug on approve all/reject all pending accounts (#10519)

parent c03f926c
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment