Remove exam_mode filter for superusers in generic_exam_htmx to display all non-archived exams
This commit is contained in:
+1
-1
@@ -773,7 +773,7 @@ def generic_exam_htmx(request):
|
||||
|
||||
# For non-superusers, only show exams they can edit or that they authored
|
||||
if request.user.is_superuser:
|
||||
exams = Exam.objects.filter(archive=False, exam_mode=True).order_by("name")
|
||||
exams = Exam.objects.filter(archive=False).order_by("name")
|
||||
else:
|
||||
# authors or markers or assigned exams
|
||||
exams = (
|
||||
|
||||
Reference in New Issue
Block a user