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