1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-24 04:28:46 +02:00

Suppression de la possibilité de changer de rôle facilement

This commit is contained in:
galaxyoyo
2019-09-24 00:13:37 +02:00
parent 22c90369e8
commit 649a66b2f1
2 changed files with 0 additions and 30 deletions

View File

@ -78,18 +78,6 @@
<li><a href="<?= $URL_BASE ?>/videos-solutions">Vidéos des solutions</a></li>
<?php } ?>
<li><a href="<?= $URL_BASE ?>/deconnexion">Déconnexion</a></li>
<hr/>
<?php
if ($_SESSION["role"] != Role::ADMIN) {
echo "<li><a href=\"?be-admin=1\">Devenir administrateur</a></li>\n";
}
if ($_SESSION["role"] != Role::PARTICIPANT) {
echo "<li><a href=\"?be-participant=1\">Devenir participant</a></li>\n";
}
if ($_SESSION["role"] != Role::ENCADRANT) {
echo "<li><a href=\"?be-encadrant=1\">Devenir encadrant</a></li>\n";
}
?>
<?php } ?>
</ul>