This commit is contained in:
Ross
2022-05-03 18:49:30 +01:00
parent 4e58899e54
commit 7310e31ffc
9 changed files with 145 additions and 0 deletions
+6
View File
@@ -299,6 +299,9 @@ class ExamViews(View, LoginRequiredMixin):
if (exam.open_access and exam.active) or user in exam.get_author_objects():
return True
if exam.authors_only:
return False
if (
self.app_name == "rapids"
and not user.groups.filter(name="rapid_checker").exists()
@@ -350,6 +353,9 @@ class ExamViews(View, LoginRequiredMixin):
if exam.open_access or user in exam.get_author_objects():
return True
if exam.authors_only:
return False
if (
self.app_name == "rapids"
and not user.groups.filter(name="rapid_checker").exists()