mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
17 lines
313 B
PHP
17 lines
313 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
/** @phpstan-var \Twig\Environment $Twig */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$Viewer->permitted('users_mod') && !$Viewer->isLocked()) {
|
|
header('Location: /');
|
|
exit;
|
|
}
|
|
|
|
echo $Twig->render('user/locked.twig', [
|
|
'viewer' => $Viewer,
|
|
]);
|