1
0
Fork 0
Manager/app/middleware/AdminMiddleware.php

16 lines
279 B
PHP

<?php
declare(strict_types=1);
namespace Mcp\Middleware;
class AdminMiddleware extends LoginRequiredMiddleware
{
public function canAccess(): bool
{
if (parent::canAccess()) {
return $_SESSION['LEVEL'] > 100;
}
return false;
}
}