mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 17:42:24 +00:00
Les organisateurs ne pouvaient pas valider les équipes
This commit is contained in:
parent
0dab65d82b
commit
0018ce05ec
@ -8,6 +8,9 @@ $trigram = htmlspecialchars($_GET["trigram"]);
|
|||||||
$team = Team::fromTrigram($trigram);
|
$team = Team::fromTrigram($trigram);
|
||||||
$tournament = Tournament::fromId($team->getTournamentId());
|
$tournament = Tournament::fromId($team->getTournamentId());
|
||||||
|
|
||||||
|
if ($_SESSION["role"] == Role::ORGANIZER && !$tournament->organize($_SESSION["user_id"]))
|
||||||
|
require_once "server_files/403.php";
|
||||||
|
|
||||||
if ($team === null)
|
if ($team === null)
|
||||||
require_once "server_files/404.php";
|
require_once "server_files/404.php";
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@
|
|||||||
</form>
|
</form>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($team->getValidationStatus() == ValidationStatus::WAITING && $_SESSION["role"] == Role::ADMIN) { ?>
|
<?php if ($team->getValidationStatus() == ValidationStatus::WAITING) { ?>
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label for="message">Message à adresser à l'équipe :</label>
|
<label for="message">Message à adresser à l'équipe :</label>
|
||||||
@ -96,7 +96,7 @@
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$team->isSelectedForFinal() && $team->getValidationStatus() == ValidationStatus::VALIDATED && $_SESSION["role"] == Role::ADMIN) { ?>
|
if (!$team->isSelectedForFinal() && $team->getValidationStatus() == ValidationStatus::VALIDATED) { ?>
|
||||||
<hr/>
|
<hr/>
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<input class="btn btn-primary btn-lg btn-block" type="submit" name="select" value="Sélectionner pour la finale nationale"/>
|
<input class="btn btn-primary btn-lg btn-block" type="submit" name="select" value="Sélectionner pour la finale nationale"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user