This commit is contained in:
Ross
2021-05-03 11:42:28 +01:00
parent 32823a8bf8
commit 75d4e27906
2 changed files with 15 additions and 0 deletions
+2
View File
@@ -172,6 +172,8 @@ class ExamViews(View, LoginRequiredMixin):
return False
if self.app_name == "longs" and not user.groups.filter(name='long_checker').exists():
return False
if self.app_name == "physics" and not user.groups.filter(name='physic_checker').exists():
return False
return True