From 69250901a1f57ddf654f1bc43e031dd6b6ef36f4 Mon Sep 17 00:00:00 2001 From: Maximilian Grundke Date: Wed, 8 Nov 2017 21:24:46 +0100 Subject: [PATCH] Fix typo --- app/controllers/exercises_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index 148f0178..92bc5b97 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -376,7 +376,7 @@ class ExercisesController < ApplicationController def redirect_after_submit Rails.logger.debug('Redirecting user with score:s ' + @submission.normalized_score.to_s) - if submission.normalized_score == 1.0 + if @submission.normalized_score == 1.0 # if user is external and has an own rfc, redirect to it and message him to clean up and accept the answer. (we need to check that the user is external, # otherwise an internal user could be shown a false rfc here, since current_user.id is polymorphic, but only makes sense for external users when used with rfcs.) # redirect 10 percent pseudorandomly to the feedback page