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
+2
View File
@@ -217,3 +217,5 @@ class CidUserExam(models.Model):
cid_user = models.ForeignKey(CidUser, on_delete=models.CASCADE)
manual_submission = models.BooleanField(default=False)
+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():