This commit is contained in:
Ross
2021-09-30 22:59:13 +01:00
parent 8b78466925
commit bf7e3793fb
+2 -2
View File
@@ -205,7 +205,7 @@ class ExamViews(View, LoginRequiredMixin):
return False
if self.app_name == "longs" and not user.groups.filter(name__in=('long_checker', 'long_marker')).exists():
return False
if self.app_name == "physics" and not user.groups.filter(name='physic_checker').exists():
if self.app_name == "physics" and not user.groups.filter(name='physics_checker').exists():
return False
if self.app_name == "sbas" and not user.groups.filter(name='sba_checker').exists():
return False
@@ -226,7 +226,7 @@ class ExamViews(View, LoginRequiredMixin):
return False
if self.app_name == "longs" and not user.groups.filter(name__in=('long_checker')).exists():
return False
if self.app_name == "physics" and not user.groups.filter(name='physic_checker').exists():
if self.app_name == "physics" and not user.groups.filter(name='physics_checker').exists():
return False
if self.app_name == "sbas" and not user.groups.filter(name='sba_checker').exists():
return False