mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:52:17 +01:00 
			
		
		
		
	Fix permissions for solutions for the final
This commit is contained in:
		@@ -553,7 +553,8 @@ class SolutionView(LoginRequiredMixin, View):
 | 
				
			|||||||
            passage_participant_qs = Passage.objects.none()
 | 
					            passage_participant_qs = Passage.objects.none()
 | 
				
			||||||
        if not (user.registration.is_admin
 | 
					        if not (user.registration.is_admin
 | 
				
			||||||
                or user.registration.is_volunteer and user.registration
 | 
					                or user.registration.is_volunteer and user.registration
 | 
				
			||||||
                in solution.participation.tournament.organizers.all()
 | 
					                in (solution.participation.tournament
 | 
				
			||||||
 | 
					                    if not solution.final_solution else Tournament.final_tournament()).organizers.all()
 | 
				
			||||||
                or user.registration.is_volunteer
 | 
					                or user.registration.is_volunteer
 | 
				
			||||||
                and Passage.objects.filter(Q(pool__juries=user.registration)
 | 
					                and Passage.objects.filter(Q(pool__juries=user.registration)
 | 
				
			||||||
                                           | Q(pool__tournament__in=user.registration.organized_tournaments.all()),
 | 
					                                           | Q(pool__tournament__in=user.registration.organized_tournaments.all()),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user