From 55d7fb2f9a912adc9a2660eb1d742cf21ae1b485 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Mon, 14 Nov 2022 18:21:35 +0100 Subject: [PATCH] Download file: Return after rendering NotAuthorized Error Fixes CODEOCEAN-ET --- app/controllers/live_streams_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/live_streams_controller.rb b/app/controllers/live_streams_controller.rb index fd4f3935..5134f806 100644 --- a/app/controllers/live_streams_controller.rb +++ b/app/controllers/live_streams_controller.rb @@ -12,7 +12,7 @@ class LiveStreamsController < ApplicationController # TODO: Option to disable? # Using the submission ID parameter would allow looking up the corresponding exercise ID # Therefore, we just redirect to the root_path, but actually expect to redirect back (that should work!) - redirect_back(fallback_location: root_path, alert: t('exercises.download_file_tree.gone')) + return redirect_back(fallback_location: root_path, alert: t('exercises.download_file_tree.gone')) end desired_file = params[:filename].to_s