mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 16:42:28 +01:00 
			
		
		
		
	object -> get_object()
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user