mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-01-25 01:01:17 +00:00
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…
x
Reference in New Issue
Block a user