ttrss/classes/Handler_Administrative.php

12 lines
297 B
PHP
Raw Normal View History

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