mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 06:22:13 +01:00 
			
		
		
		
	Organizers can see solutions
This commit is contained in:
		@@ -549,7 +549,10 @@ class SolutionView(LoginRequiredMixin, View):
 | 
			
		||||
                                                            solution_number=solution.problem)
 | 
			
		||||
        else:
 | 
			
		||||
            passage_participant_qs = Passage.objects.none()
 | 
			
		||||
        if not (user.registration.is_admin or user.registration.is_volunteer
 | 
			
		||||
        if not (user.registration.is_admin
 | 
			
		||||
                or user.registration.is_volunteer and user.registration
 | 
			
		||||
                in solution.participation.tournament.organizers.all()
 | 
			
		||||
                or user.registration.is_volunteer
 | 
			
		||||
                and Passage.objects.filter(Q(pool__juries=user.registration)
 | 
			
		||||
                                           | Q(pool__tournament__in=user.registration.organized_tournaments.all()),
 | 
			
		||||
                                           defender=solution.participation,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user