.
This commit is contained in:
+1
-1
@@ -322,7 +322,7 @@ def exam_take(request, pk, sk, cid, passcode=None):
|
|||||||
if not exam.active:
|
if not exam.active:
|
||||||
raise Http404("Exam not found")
|
raise Http404("Exam not found")
|
||||||
|
|
||||||
if exam.valid_users is not None:
|
if exam.valid_users.exists():
|
||||||
user = exam.valid_users.filter(cid=cid)
|
user = exam.valid_users.filter(cid=cid)
|
||||||
|
|
||||||
if not user or user.passcode != passcode:
|
if not user or user.passcode != passcode:
|
||||||
|
|||||||
Reference in New Issue
Block a user