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