Reject illegal file attributes in remote evaluation

Remove ! from reject illegal file parameters
This commit is contained in:
tobias.kantusch
2021-04-22 13:51:19 +02:00
committed by Sebastian Serth
parent ea029c5f1c
commit 1f3c9db537
3 changed files with 18 additions and 12 deletions

View File

@ -62,6 +62,7 @@ class RemoteEvaluationController < ApplicationController
_params[:user_id] = remote_evaluation_mapping.user_id
_params[:cause] = cause
_params[:user_type] = remote_evaluation_mapping.user_type
_params[:files_attributes] = reject_illegal_file_attributes(remote_evaluation_mapping.exercise_id, files_attributes)
@submission = Submission.create(_params)
score_submission(@submission)