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