add (correct) support for logged in users to sba and physics exams

This commit is contained in:
Ross
2023-06-26 11:52:23 +01:00
parent 09951286e2
commit 656f1658f8
10 changed files with 288 additions and 187 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<h2>Start exam: {{exam.name}}</h2>
{% if request.user.is_authenticated %}
{% if request.user.is_authenticated and valid_user %}
<a href="{% url 'physics:exam_take_user' pk=exam.pk sk=0 %}">Start Exam</a>
{% else %}
Enter your CID and passcode in the below boxes.<br />