From 5aaee4b08fc84d76ec0960c434c22daa9b2b855a Mon Sep 17 00:00:00 2001 From: Oren Mittman Date: Fri, 6 Sep 2024 21:25:33 -0400 Subject: [PATCH] [ARP-86023] ARP IPF: Work around weird CodeQL CWE-915 issue. --- .../v0/in_progress_forms_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/accredited_representative_portal/app/controllers/accredited_representative_portal/v0/in_progress_forms_controller.rb b/modules/accredited_representative_portal/app/controllers/accredited_representative_portal/v0/in_progress_forms_controller.rb index 59e524342c2..5c7d4866540 100644 --- a/modules/accredited_representative_portal/app/controllers/accredited_representative_portal/v0/in_progress_forms_controller.rb +++ b/modules/accredited_representative_portal/app/controllers/accredited_representative_portal/v0/in_progress_forms_controller.rb @@ -5,7 +5,7 @@ module V0 class InProgressFormsController < ApplicationController def update form = in_progress_form || new_form_for_user(form_id, @current_user) - form.update!(form_params) + form.update!(form_data: params[:form_data], metadata: params[:metadata]) render json: InProgressFormSerializer.new(form) end @@ -44,10 +44,6 @@ def in_progress_form InProgressForm.form_for_user(form_id, @current_user) end - def form_params - params.permit(form_data: {}, metadata: {}) - end - def form_id params[:id] end