mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 14:57:24 +02:00
Un encandrant peut encadrer plusieurs équipes
This commit is contained in:
@ -13,7 +13,7 @@ $user = $_SESSION["user"];
|
||||
if ($team == null)
|
||||
require_once "server_files/404.php";
|
||||
|
||||
if ($team->getEncadrantId() != $user->getId() || $team->getValidationStatus() != ValidationStatus::VALIDATED)
|
||||
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