about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-11-14 06:56:15 +0100
committerGitHub <noreply@github.com>2022-11-14 06:56:15 +0100
commit167d86d21dbd8dab120555e12c2a3a5e5432d632 (patch)
tree5386f5b73ec36abe2ec8f02062188a36e6b533a8 /app/controllers/api
parent2e2ba39abf3163bddf2f54bb3c358b60304ba6b4 (diff)
Fix `role_ids` not accepting arrays in admin API (#20625)
Fix #19157
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v2/admin/accounts_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v2/admin/accounts_controller.rb b/app/controllers/api/v2/admin/accounts_controller.rb
index bcc1a0733..b25831aa0 100644
--- a/app/controllers/api/v2/admin/accounts_controller.rb
+++ b/app/controllers/api/v2/admin/accounts_controller.rb
@@ -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)