.
This commit is contained in:
+3
-2
@@ -157,8 +157,9 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
self.question_type = question_type
|
||||
self.loadJsonAnswer = loadJsonAnswer
|
||||
|
||||
group_map = {"rapids" : "rapid_checker", "anatomy" : "anatomy_checker", "longs":"long_checker"}
|
||||
exam_group = group_map[self.app_name]
|
||||
# THis may be better than check_user_access below
|
||||
#group_map = {"rapids" : "rapid_checker", "anatomy" : "anatomy_checker", "longs":"long_checker"}
|
||||
#exam_group = group_map[self.app_name]
|
||||
|
||||
def check_user_access(self, user):
|
||||
"""Check if a user should be able to access a view
|
||||
|
||||
Reference in New Issue
Block a user