From 10bbc68829839834d71cad13cf2ab5e9c888e21b Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Wed, 28 Oct 2020 14:07:09 +0100 Subject: [PATCH] Save file ref for code runs in testrun --- app/controllers/submissions_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index d1f9361b..7035de30 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -8,8 +8,8 @@ class SubmissionsController < ApplicationController before_action :set_submission, only: [:download, :download_file, :render_file, :run, :score, :extract_errors, :show, :statistics, :stop, :test] before_action :set_docker_client, only: [:run, :test] - before_action :set_files, only: [:download, :download_file, :render_file, :show] - before_action :set_file, only: [:download_file, :render_file] + before_action :set_files, only: [:download, :download_file, :render_file, :show, :run] + before_action :set_file, only: [:download_file, :render_file, :run] before_action :set_mime_type, only: [:download_file, :render_file] skip_before_action :verify_authenticity_token, only: [:download_file, :render_file]