Fix role_ids not accepting arrays in admin API (#20625)

Fix #19157
This commit is contained in:
Eugen Rochko 2022-11-14 06:56:15 +01:00 committed by GitHub
parent 2e2ba39abf
commit 167d86d21d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ class Api::V2::Admin::AccountsController < Api::V1::Admin::AccountsController
end
def filter_params
params.permit(*FILTER_PARAMS)
params.permit(*FILTER_PARAMS, role_ids: [])
end
def pagination_params(core_params)