1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-26 05:17:36 +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

@ -49,7 +49,7 @@ if (isset($_SESSION["user_id"]) && isset($_SESSION["teams"]) && sizeof($_SESSION
if ($team == null)
require_once "server_files/404.php";
if ($team->getEncadrantId() != $user->getId())
if ($user->getRole() == Role::ENCADRANT && $team->getEncadrantId() != $user->getId())
require_once "server_files/403.php";
$documents = $team->getAllDocuments();