This commit is contained in:
Ross
2021-12-12 17:49:52 +00:00
parent af9a123e41
commit b2e7e82ac2
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -235,6 +235,7 @@ class ExamViews(View, LoginRequiredMixin):
Returns:
[boolean]: True if the user has access
"""
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():