mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 03:42:11 +01:00 
			
		
		
		
	object -> get_object()
This commit is contained in:
		@@ -292,7 +292,7 @@ class TeamUpdateView(LoginRequiredMixin, UpdateView):
 | 
			
		||||
        if user.registration.is_admin or user.registration.participates and \
 | 
			
		||||
                user.registration.team 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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user