This commit is contained in:
Ross
2021-10-17 09:56:56 +01:00
parent 3d1d2ea481
commit b1cf6a7f75
+2 -2
View File
@@ -203,7 +203,7 @@ class ExamViews(View, LoginRequiredMixin):
Returns:
[boolean]: True if the user has access
"""
if user in self.exam.get_author_objects():
if user in self.Exam.get_author_objects():
return True
if self.app_name == "rapids" and not user.groups.filter(name='rapid_checker').exists():
@@ -228,7 +228,7 @@ class ExamViews(View, LoginRequiredMixin):
[boolean]: True if the user has access
"""
# If a user is an exam author they should have acccess
if user in self.exam.get_author_objects():
if user in self.Exam.get_author_objects():
return True
if self.app_name == "rapids" and not user.groups.filter(name='rapid_checker').exists():