mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-26 17:27:58 +02:00
Changement confinement
This commit is contained in:
@ -123,7 +123,9 @@ function canValidate(Team $team, Tournament $tournament)
|
||||
$can_validate = $team->getValidationStatus() == ValidationStatus::NOT_READY;
|
||||
$can_validate &= $team->getEncadrants()[0] != NULL;
|
||||
$can_validate &= $team->getParticipants()[3] != NULL;
|
||||
for ($i = 1; $i <= 2; ++$i) {
|
||||
|
||||
// Le TFJM² 2020 se déroulant en ligne, les papiers ne sont plus nécessaires
|
||||
/* for ($i = 1; $i <= 2; ++$i) {
|
||||
if ($team->getEncadrants()[$i - 1] === NULL)
|
||||
continue;
|
||||
|
||||
@ -131,9 +133,11 @@ function canValidate(Team $team, Tournament $tournament)
|
||||
$req->execute([$team->getEncadrants()[$i - 1], $tournament->getId(), "PHOTO_CONSENT"]);
|
||||
$d = $req->fetch();
|
||||
$can_validate &= $d["version"] > 0;
|
||||
}
|
||||
}*/
|
||||
|
||||
for ($i = 1; $i <= 6; ++$i) {
|
||||
|
||||
// Le TFJM² 2020 se déroulant en ligne, les papiers ne sont plus nécessaires
|
||||
/* for ($i = 1; $i <= 6; ++$i) {
|
||||
if ($team->getParticipants()[$i] === NULL)
|
||||
continue;
|
||||
|
||||
@ -154,12 +158,13 @@ function canValidate(Team $team, Tournament $tournament)
|
||||
$d = $req->fetch();
|
||||
$can_validate &= $d["version"] > 0;
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
$req = $DB->prepare("SELECT COUNT(*) AS `version` FROM `documents` WHERE `team` = ? AND `tournament` = ? AND `type` = ?;");
|
||||
// La lettre de motivation n'est plus nécessaire, mais existe toujours
|
||||
/* $req = $DB->prepare("SELECT COUNT(*) AS `version` FROM `documents` WHERE `team` = ? AND `tournament` = ? AND `type` = ?;");
|
||||
$req->execute([$team->getId(), $tournament->getId(), "MOTIVATION_LETTER"]);
|
||||
$d = $req->fetch();
|
||||
$can_validate &= $d["version"] > 0;
|
||||
$can_validate &= $d["version"] > 0;*/
|
||||
|
||||
return $can_validate;
|
||||
}
|
||||
|
Reference in New Issue
Block a user