mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-25 07:40:29 +02:00
Possibilité d'accéder à la vue d'une autre personne sur la plateforme en tant qu'administrateur
This commit is contained in:
@ -98,4 +98,13 @@ if (!$has_error) {
|
||||
printDocuments($documents);
|
||||
}
|
||||
|
||||
if ($_SESSION["role"] == Role::ADMIN && $_SESSION["user_id"] != $user->getId()) { ?>
|
||||
<hr />
|
||||
|
||||
<form method="POST">
|
||||
<input type="submit" name="view_as" class="btn btn-secondary btn-lg btn-block" style="background-color: #ff2e34"
|
||||
value="Afficher le site en tant que <?= $user->getFirstName() . " " . $user->getSurname() ?>" />
|
||||
</form>
|
||||
<?php }
|
||||
|
||||
require_once "footer.php";
|
Reference in New Issue
Block a user