This commit is contained in:
Ross
2025-12-08 09:52:18 +00:00
parent 02a9118faf
commit 0917947a98
8 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -1774,7 +1774,7 @@ class ExamViews(View, LoginRequiredMixin):
def exam_list_collection(self, request, collection_id):
collection = get_object_or_404(ExamCollection, pk=collection_id)
if not request.user in collection.author.all():
if not collection.is_author(request.user):
raise PermissionDenied
return self.exam_list(request, all=True, collection=collection)