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:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user