Skip to content

Commit

Permalink
only permit certain fields (#3710)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Aug 12, 2024
1 parent 696cbed commit eb4494e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/myjobs/app/controllers/workflows_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ def set_workflow

# Only allow a trusted parameter "white list" through.
def workflow_params
params.require(:workflow).permit!
params.require(:workflow).permit(
:name, :batch_host, :script_name, :staging_template_dir,
:account, :job_array_request, :copy_environment
)
end

def update_jobs
Expand Down

0 comments on commit eb4494e

Please sign in to comment.