mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-24 08:28:46 +02:00
Suppression de la possibilité de changer de rôle facilement
This commit is contained in:
@ -13,24 +13,6 @@ function loadUserValues()
|
||||
|
||||
if ($user->getTeamId() !== null)
|
||||
$_SESSION["team"] = Team::fromId($user->getTeamId());
|
||||
|
||||
if (isset($_GET["be-admin"])) {
|
||||
quitTeam();
|
||||
$user->setRole(Role::ADMIN);
|
||||
exit();
|
||||
}
|
||||
|
||||
if (isset($_GET["be-participant"])) {
|
||||
quitTeam();
|
||||
$user->setRole(Role::PARTICIPANT);
|
||||
exit();
|
||||
}
|
||||
|
||||
if (isset($_GET["be-encadrant"])) {
|
||||
quitTeam();
|
||||
$user->setRole(Role::ENCADRANT);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user