.
This commit is contained in:
+2
-2
@@ -301,7 +301,7 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
if (
|
if (
|
||||||
self.app_name == "anatomy"
|
self.app_name == "anatomy"
|
||||||
and not user.groups.filter(
|
and not user.groups.filter(
|
||||||
name__in=["anatomy_checker", "anatomy_marker"]
|
name__in=("anatomy_checker", "anatomy_marker")
|
||||||
).exists()
|
).exists()
|
||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
@@ -559,7 +559,7 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
@method_decorator(login_required)
|
@method_decorator(user_is_cid_user_manager)
|
||||||
def exam_cids(self, request, exam_id):
|
def exam_cids(self, request, exam_id):
|
||||||
exam = get_object_or_404(self.Exam, pk=exam_id)
|
exam = get_object_or_404(self.Exam, pk=exam_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user