1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-24 16:17:32 +02:00
ttrss/classes/Handler_Administrative.php
2023-10-25 12:55:09 +03:00

12 lines
297 B
PHP

<?php
class Handler_Administrative extends Handler_Protected {
function before(string $method): bool {
if (parent::before($method)) {
if (($_SESSION["access_level"] ?? 0) >= UserHelper::ACCESS_LEVEL_ADMIN) {
return true;
}
}
return false;
}
}