mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 20:57:25 +02:00
Les organisateurs ne pouvaient pas valider les équipes
This commit is contained in:
@ -8,6 +8,9 @@ $trigram = htmlspecialchars($_GET["trigram"]);
|
||||
$team = Team::fromTrigram($trigram);
|
||||
$tournament = Tournament::fromId($team->getTournamentId());
|
||||
|
||||
if ($_SESSION["role"] == Role::ORGANIZER && !$tournament->organize($_SESSION["user_id"]))
|
||||
require_once "server_files/403.php";
|
||||
|
||||
if ($team === null)
|
||||
require_once "server_files/404.php";
|
||||
|
||||
|
Reference in New Issue
Block a user