Use correct embed_option to disable_score

This commit is contained in:
Sebastian Serth
2021-10-17 16:20:15 +02:00
parent 2377f8370c
commit 56a1d78793

View File

@ -173,7 +173,7 @@ class SubmissionsController < ApplicationController
def score
hijack do |tubesock|
return if @embed_options[:disable_run]
return if @embed_options[:disable_score]
tubesock.send_data(JSON.dump(@submission.calculate_score))
# To enable hints when scoring a submission, uncomment the next line: