This commit is contained in:
Ross
2021-08-31 22:17:28 +01:00
parent f272a8ee5e
commit 61993331b3
+1 -1
View File
@@ -174,7 +174,7 @@ class ExamViews(View, LoginRequiredMixin):
return False
if self.app_name == "anatomy" and not user.groups.filter(name='anatomy_checker').exists():
return False
if self.app_name == "longs" and not user.groups.filter(name_in=('long_checker', 'long_marker')).exists():
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():
return False