.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user