.
This commit is contained in:
+4
-4
@@ -299,8 +299,8 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
if (exam.open_access and exam.active) or user in exam.get_author_objects():
|
if (exam.open_access and exam.active) or user in exam.get_author_objects():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if exam.authors_only:
|
if exam.authors_only:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if (
|
if (
|
||||||
self.app_name == "rapids"
|
self.app_name == "rapids"
|
||||||
@@ -353,8 +353,8 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
if exam.open_access or user in exam.get_author_objects():
|
if exam.open_access or user in exam.get_author_objects():
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if exam.authors_only:
|
if exam.authors_only:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if (
|
if (
|
||||||
self.app_name == "rapids"
|
self.app_name == "rapids"
|
||||||
|
|||||||
Reference in New Issue
Block a user