fix ajax action access, dont use delayed for model_solutions

This commit is contained in:
Karol
2020-10-06 16:42:09 +02:00
committed by dependabot-preview[bot]
parent c9b6b213f4
commit 6e11f29fdf
3 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,7 @@ class ExercisesController < ApplicationController
before_action :set_file_types, only: %i[create edit new update] before_action :set_file_types, only: %i[create edit new update]
before_action :set_course_token, only: [:implement] 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_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 skip_after_action :verify_policy_scoped, only: %i[import_exercise import_uuid_check export_external_confirm], raise: false

View File

@ -50,7 +50,6 @@ module ProformaService
task_file(file).tap do |ms_file| task_file(file).tap do |ms_file|
ms_file.used_by_grader = false ms_file.used_by_grader = false
ms_file.usage_by_lms = 'display' ms_file.usage_by_lms = 'display'
ms_file.visible = 'delayed'
end end
] ]
end end

View File

@ -132,7 +132,7 @@ RSpec.describe ProformaService::ConvertExerciseToTask do
filename: file.name_with_extension, filename: file.name_with_extension,
used_by_grader: false, used_by_grader: false,
usage_by_lms: 'display', usage_by_lms: 'display',
visible: 'delayed', visible: 'yes',
binary: false, binary: false,
internal_description: 'reference_implementation' internal_description: 'reference_implementation'
) )