1
0
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:
Yohann D'ANELLO
2020-02-18 15:46:34 +01:00
parent 0dab65d82b
commit 0018ce05ec
2 changed files with 5 additions and 2 deletions

View File

@ -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";