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

16 lines
279 B
PHP
Raw Permalink 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()) {
2023-09-04 23:09:59 +00:00
return $_SESSION['LEVEL'] > 100;
2023-08-29 11:55:12 +00:00
}
return false;
}
}