From a594b268eace20299c6290a8faad7f4f1d309712 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 25 Apr 2024 12:42:37 +0200 Subject: [PATCH] Fix permission to download all authorizations of a tournament Signed-off-by: Emmy D'Anello --- participation/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/participation/views.py b/participation/views.py index b7dcd1a..8af0777 100644 --- a/participation/views.py +++ b/participation/views.py @@ -391,7 +391,7 @@ class TeamAuthorizationsView(LoginRequiredMixin, View): tournament = Tournament.objects.get(pk=kwargs["tournament_id"]) if user.registration.is_admin or user.registration.is_volunteer \ - and (user.registration in tournament.organizers + and (user.registration in tournament.organizers.all() or (team is not None and team.participation.final and user.registration in Tournament.final_tournament().organizers)): return super().dispatch(request, *args, **kwargs)