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

Design pages "Rejoindre une équipe" et "Informations"

This commit is contained in:
galaxyoyo
2019-09-25 00:57:41 +02:00
parent 615f2da9a4
commit 371605d265
5 changed files with 56 additions and 37 deletions

View File

@ -7,7 +7,7 @@ $id = $_GET["id"];
$user = User::fromId($id);
if ($_SESSION["role"] != Role::ADMIN) {
if ($user->getId() != $_SESSION["user_id"] && ($user->getTeamId() == null || $user->getTeamId() != $_SESSION["user"]->getTeamId()))
if ($user->getId() != $_SESSION["user_id"])
require_once "server_files/403.php";
}