Always use user object instead of ID and Type
This commit is contained in:
@ -137,7 +137,7 @@ class ExecutionEnvironmentsController < ApplicationController
|
||||
params[:execution_environment]
|
||||
.permit(:docker_image, :editor_mode, :file_extension, :file_type_id, :help, :indent_size, :memory_limit, :cpu_limit, :name,
|
||||
:network_enabled, :privileged_execution, :permitted_execution_time, :pool_size, :run_command, :test_command, :testing_framework)
|
||||
.merge(user_id: current_user.id, user_type: current_user.class.name, exposed_ports:)
|
||||
.merge(user: current_user, exposed_ports:)
|
||||
end
|
||||
end
|
||||
private :execution_environment_params
|
||||
|
Reference in New Issue
Block a user