This commit is contained in:
Ross
2021-12-12 17:52:19 +00:00
parent b2e7e82ac2
commit 88b25aeb64
+1 -1
View File
@@ -238,7 +238,7 @@ class ExamViews(View, LoginRequiredMixin):
print("****", user, exam_id)
if exam_id is not None:
exam = get_object_or_404(self.Exam, pk=exam_id)
if exam.open_access or user in exam.get_author_objects():
if (exam.open_access and exam.active) or user in exam.get_author_objects():
return True
if (