.
This commit is contained in:
@@ -62,7 +62,7 @@
|
|||||||
color: lightgray;
|
color: lightgray;
|
||||||
}
|
}
|
||||||
.current::before {
|
.current::before {
|
||||||
content: "[ADDED TO EXAM]"
|
content: "[ADDED TO EXAM] - "
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|||||||
+4
-5
@@ -629,11 +629,10 @@ class ExamViews(View, LoginRequiredMixin):
|
|||||||
exam = get_object_or_404(self.Exam, pk=exam_id)
|
exam = get_object_or_404(self.Exam, pk=exam_id)
|
||||||
|
|
||||||
if not request.user.groups.filter(name="cid_user_manager").exists():
|
if not request.user.groups.filter(name="cid_user_manager").exists():
|
||||||
raise PermissionDenied
|
#raise PermissionDenied
|
||||||
|
if request.user not in exam.author.all():
|
||||||
if request.user not in exam.author.all():
|
if not self.check_user_access(request.user, exam_id):
|
||||||
if not self.check_user_access(request.user, exam_id):
|
raise PermissionDenied
|
||||||
raise PermissionDenied
|
|
||||||
|
|
||||||
current_cid_users = exam.valid_users.all()
|
current_cid_users = exam.valid_users.all()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user