This commit is contained in:
Ross
2021-12-12 17:02:27 +00:00
parent da7ac995c6
commit eb6208c5dc
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -634,6 +634,9 @@ def loadJsonAnswer(answer):
exam = get_object_or_404(Exam, pk=eid)
if not exam.check_cid_user(answer["cid"], answer["passcode"]):
return False, JsonResponse({"success": False, "error": "invalid cid / passcode"})
# if not exam.active:
# return False, JsonResponse(
# {"success": False, "error": "No active exam: {}".format(eid)}