.
This commit is contained in:
+1
-1
@@ -218,7 +218,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
exam = get_object_or_404(self.Exam, pk=pk)
|
||||
|
||||
if self.app_name == "longs":
|
||||
if request.user not in exam.get_author_objects:
|
||||
if request.user not in exam.get_author_objects():
|
||||
if not request.user.groups.filter(name='long_checker').exists():
|
||||
raise PermissionDenied
|
||||
|
||||
|
||||
Reference in New Issue
Block a user