mirror of https://github.com/mastodon/mastodon.git
Use `params_slice` in api/v1/admin/accounts controller
parent
0b8ca70cbb
commit
ac4e2a0b19
|
@ -26,7 +26,7 @@ class Api::V1::Admin::AccountActionsController < Api::BaseController
|
|||
end
|
||||
|
||||
def resource_params
|
||||
params.permit(
|
||||
params_slice(
|
||||
:type,
|
||||
:report_id,
|
||||
:warning_preset_id,
|
||||
|
|
Loading…
Reference in New Issue