.
This commit is contained in:
+1
-1
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user