mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 02:12:05 +01:00 
			
		
		
		
	Fix tournament detail view for anonymous users
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -622,7 +622,7 @@ class TournamentDetailView(MultiTableMixin, DetailView):
 | 
			
		||||
        context["available_notes_2"] = all(pool.results_available for pool in self.object.pools.filter(round=2).all())
 | 
			
		||||
 | 
			
		||||
        if not self.object.final and notes and context["available_notes_2"] \
 | 
			
		||||
                and self.request.user.registration.is_volunteer:
 | 
			
		||||
                and not self.request.user.is_anonymous and self.request.user.registration.is_volunteer:
 | 
			
		||||
            context["team_selectable_for_final"] = next(participation for participation, _note in sorted_notes
 | 
			
		||||
                                                        if not participation.final)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user