This commit is contained in:
Ross
2021-12-19 22:45:33 +00:00
parent da0f9bcf24
commit 318d47ed3b
2 changed files with 2 additions and 2 deletions
@@ -48,7 +48,7 @@
<tr>
<th>Candidate</th>
{% for cid in cids %}
<th><a href="{% url 'anatomy:exam_scores_cid_user' exam.pk cid None %}">{{cid}}</a></th>
<th><a href="{% url 'anatomy:exam_scores_cid_user' exam.pk cid 'None' %}">{{cid}}</a></th>
{% comment %} <th><a href="">{{cid}}</a></th> {% endcomment %}
{% endfor %}
+1 -1
View File
@@ -604,7 +604,7 @@ def exam_scores_cid_user(request, pk, sk, passcode):
raise Http404("Packet not in exam mode")
cid = sk
if not exam.check_cid_user(cid, passcode):
if not exam.check_cid_user(cid, passcode, request):
raise Http404("Error accessing exam")
questions = exam.exam_questions.all()