.
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
#print("test", Exam.objects.all().get(id=pk))
|
||||
exam = get_object_or_404(self.Exam, pk=pk)
|
||||
|
||||
if request.user not in exam.author.all() and not request.user.groups.filter(name='rapid_checker').exists():
|
||||
if self.app_name == "rapids" and request.user not in exam.author.all() and not request.user.groups.filter(name='rapid_checker').exists():
|
||||
raise PermissionDenied
|
||||
|
||||
questions = exam.exam_questions.all()
|
||||
|
||||
Reference in New Issue
Block a user