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

Un encandrant peut encadrer plusieurs équipes

This commit is contained in:
Yohann
2019-12-13 19:09:14 +01:00
parent ef505465d5
commit 79400ca298
8 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,7 @@ $team = $user->getRole() == Role::PARTICIPANT ? $_SESSION["team"] : Team::fromTr
if ($team == null)
require_once "server_files/404.php";
if ($team->getEncadrantId() != $user->getId())
if ($user->getRole() == Role::ENCADRANT && $team->getEncadrantId() != $user->getId() || $team->getValidationStatus() != ValidationStatus::VALIDATED)
require_once "server_files/403.php";
$has_error = false;