mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 23:07:31 +02: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