object -> get_object()
This commit is contained in:
parent
7984ce8e1d
commit
8fc99803c1
|
@ -480,7 +480,7 @@ class ParticipationDetailView(LoginRequiredMixin, DetailView):
|
|||
and user.registration.team.participation \
|
||||
and user.registration.team.participation.pk == kwargs["pk"] \
|
||||
or user.registration.is_volunteer \
|
||||
and self.object.tournament in user.registration.interesting_tournaments:
|
||||
and self.get_object().tournament in user.registration.interesting_tournaments:
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
raise PermissionDenied
|
||||
|
||||
|
|
Loading…
Reference in New Issue