mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 11:52:20 +01:00 
			
		
		
		
	3 encadrants max par équipe
This commit is contained in:
		@@ -103,7 +103,7 @@ class AttributeTeam
 | 
			
		||||
		ensure($this->team->getValidationStatus() == ValidationStatus::NOT_READY, "Cette équipe est déjà validée ou en cours de validation.");
 | 
			
		||||
 | 
			
		||||
		$role = $user->getRole();
 | 
			
		||||
		for ($i = 1; $i <= $role == Role::ENCADRANT ? 2 : 6; ++$i) {
 | 
			
		||||
		for ($i = 1; $i <= $role == Role::ENCADRANT ? 3 : 6; ++$i) {
 | 
			
		||||
			if (($role == Role::PARTICIPANT ? $this->team->getParticipants()[$i - 1] : $this->team->getEncadrants()[$i]) == NULL)
 | 
			
		||||
				break;
 | 
			
		||||
		}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user