1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-25 23:47:28 +02:00

Possibilité pour les équipes de resoumettre une vidéo si refus

This commit is contained in:
Yohann
2019-12-28 14:05:40 +01:00
parent 689d798dc3
commit 4d8d5bdbd7
4 changed files with 33 additions and 2 deletions

View File

@ -16,6 +16,11 @@ if ($team == null)
if ($user->getRole() == Role::ENCADRANT && $team->getEncadrantId() != $user->getId() || $team->getValidationStatus() != ValidationStatus::VALIDATED)
require_once "server_files/403.php";
if (Phase::getCurrentPhase() != Phase::PHASE1) {
if (!(Phase::getCurrentPhase() == Phase::PHASE12 && Video::getVideo(Reason::SOLUTION, $team) != NULL && (Video::getVideo(Reason::SOLUTION, $team, ValidationStatus::WAITING) == NULL || isset($_POST["upload"]))))
require_once "server_files/403.php";
}
$has_error = false;
$error_message = null;