diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index c8c137b9..c63eee68 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -14,7 +14,7 @@ class ExercisesController < ApplicationController before_action :set_file_types, only: %i[create edit new update] before_action :set_course_token, only: [:implement] - skip_before_action :verify_authenticity_token, only: %i[import_exercise import_uuid_check export_external_confirm] + skip_before_action :verify_authenticity_token, only: %i[import_exercise import_uuid_check export_external_confirm export_external_check] skip_after_action :verify_authorized, only: %i[import_exercise import_uuid_check export_external_confirm] skip_after_action :verify_policy_scoped, only: %i[import_exercise import_uuid_check export_external_confirm], raise: false diff --git a/app/services/proforma_service/convert_exercise_to_task.rb b/app/services/proforma_service/convert_exercise_to_task.rb index b628b04d..80b4b6a9 100644 --- a/app/services/proforma_service/convert_exercise_to_task.rb +++ b/app/services/proforma_service/convert_exercise_to_task.rb @@ -50,7 +50,6 @@ module ProformaService task_file(file).tap do |ms_file| ms_file.used_by_grader = false ms_file.usage_by_lms = 'display' - ms_file.visible = 'delayed' end ] end diff --git a/spec/services/proforma_service/convert_exercise_to_task_spec.rb b/spec/services/proforma_service/convert_exercise_to_task_spec.rb index f6fe6b7d..c24cdb50 100644 --- a/spec/services/proforma_service/convert_exercise_to_task_spec.rb +++ b/spec/services/proforma_service/convert_exercise_to_task_spec.rb @@ -132,7 +132,7 @@ RSpec.describe ProformaService::ConvertExerciseToTask do filename: file.name_with_extension, used_by_grader: false, usage_by_lms: 'display', - visible: 'delayed', + visible: 'yes', binary: false, internal_description: 'reference_implementation' )