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

16 lines
283 B
PHP
Raw Normal View History

2023-08-29 11:55:12 +00:00
<?php
declare(strict_types=1);
namespace Mcp\Middleware;
class AdminMiddleware extends LoginRequiredMiddleware
{
public function canAccess(): bool
{
if (parent::canAccess()) {
return $_SESSION['UserLevel'] > 100;
}
return false;
}
}