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