2021-02-14 12:50:46 +00:00
|
|
|
<?php
|
|
|
|
class Handler_Administrative extends Handler_Protected {
|
2021-11-13 14:05:43 +00:00
|
|
|
function before(string $method): bool {
|
2021-02-14 12:50:46 +00:00
|
|
|
if (parent::before($method)) {
|
2021-11-10 17:44:51 +00:00
|
|
|
if (($_SESSION["access_level"] ?? 0) >= UserHelper::ACCESS_LEVEL_ADMIN) {
|
2021-02-14 12:50:46 +00:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|