mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-04 19:13:04 -04:00
17 lines
319 B
PHP
17 lines
319 B
PHP
<?php
|
|
/** @phpstan-var \Gazelle\User $Viewer */
|
|
/** @phpstan-var \Twig\Environment $Twig */
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Gazelle;
|
|
|
|
if (!$Viewer->permitted('admin_dnu')) {
|
|
Error403::error();
|
|
}
|
|
|
|
echo $Twig->render('admin/dnu.twig', [
|
|
'list' => new Manager\DNU()->dnuList(),
|
|
'viewer' => $Viewer,
|
|
]);
|