diff --git a/apps/participation/views.py b/apps/participation/views.py index 7362839..01257f1 100644 --- a/apps/participation/views.py +++ b/apps/participation/views.py @@ -375,7 +375,7 @@ class TeamAuthorizationsView(LoginRequiredMixin, DetailView): return super().handle_no_permission() if user.registration.is_admin or user.registration.participates and user.registration.team.pk == kwargs["pk"] \ or user.registration.is_volunteer \ - and self.object.participation.tournament in user.registration.interesting_tournaments: + and self.get_object().participation.tournament in user.registration.interesting_tournaments: return super().dispatch(request, *args, **kwargs) raise PermissionDenied