1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 09:08:47 +02:00

Pas d'inscription possible après la date limite

This commit is contained in:
galaxyoyo
2019-09-12 18:47:57 +02:00
parent 1edc2cbd60
commit 4926539e25
11 changed files with 153 additions and 128 deletions

View File

@ -99,9 +99,10 @@ function trigramExists($trigram)
function canValidate(Team $team)
{
global $DB;
global $DB, $CONFIG;
$can_validate = $team->getValidationStatus() == ValidationStatus::NOT_READY;
$can_validate = date("Y-m-d H:i:s") < $CONFIG->getInscriptionDate();
$can_validate &= $team->getValidationStatus() == ValidationStatus::NOT_READY;
$can_validate &= $team->getEncadrantId() != null;
$can_validate &= $team->getParticipants()[2] != null;
@ -142,7 +143,7 @@ function printDocuments($documents)
function getZipFile($problem, $team_id = -1)
{
global $LOCAL_PATH, $DB;
global $LOCAL_PATH;
$zip = new ZipArchive();