From 231da42a66f9c07753269e595898cf5d9a3f8026 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 21 Apr 2022 17:40:45 +0100 Subject: [PATCH] . --- generic/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/views.py b/generic/views.py index e2b582a0..c67c8fc6 100644 --- a/generic/views.py +++ b/generic/views.py @@ -329,7 +329,7 @@ class ExamViews(View, LoginRequiredMixin): ): return False if ( - self.app_name == "casecollection" + self.app_name == "atlas" and not user.groups.filter(name="casecollection_checker").exists() ): return False @@ -692,7 +692,7 @@ class ExamViews(View, LoginRequiredMixin): app_exam_map = {} 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: app_exam_map[self.app_name].add(pk)