mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 18:17:24 +02:00
Possibilité de ne pas choisir de problème immédiatement
This commit is contained in:
@ -93,6 +93,7 @@ function canValidate(Team $team)
|
||||
$can_validate &= $team->getValidationStatus() == ValidationStatus::NOT_READY;
|
||||
$can_validate &= $team->getEncadrantId() != null;
|
||||
$can_validate &= $team->getParticipants()[2] != null;
|
||||
$can_validate &= preg_match("#[1-4]#", $team->getProblem());
|
||||
|
||||
if ($team->getEncadrantId() != null) {
|
||||
$req = $DB->prepare("SELECT COUNT(*) AS `version` FROM `documents` WHERE `user` = ? AND `problem` = ?;");
|
||||
|
Reference in New Issue
Block a user