.
This commit is contained in:
+2
-2
@@ -329,7 +329,7 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
if (
|
if (
|
||||||
self.app_name == "casecollection"
|
self.app_name == "atlas"
|
||||||
and not user.groups.filter(name="casecollection_checker").exists()
|
and not user.groups.filter(name="casecollection_checker").exists()
|
||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
@@ -692,7 +692,7 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
|
|
||||||
app_exam_map = {}
|
app_exam_map = {}
|
||||||
app_exam_map["rapids"] = cid_user.rapid_exams
|
app_exam_map["rapids"] = cid_user.rapid_exams
|
||||||
app_exam_map["casecollection"] = cid_user.casecollection_exams
|
app_exam_map["atlas"] = cid_user.casecollection_exams
|
||||||
|
|
||||||
if add:
|
if add:
|
||||||
app_exam_map[self.app_name].add(pk)
|
app_exam_map[self.app_name].add(pk)
|
||||||
|
|||||||
Reference in New Issue
Block a user