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