mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-11 16:47:23 +02:00
- read only - can't subscribe to more feeds, feed updates are skipped - disabled - can't login define used access levels as UserHelper constants and refactor code to use them instead of hardcoded numbers
12 lines
284 B
PHP
12 lines
284 B
PHP
<?php
|
|
class Handler_Administrative extends Handler_Protected {
|
|
function before($method) {
|
|
if (parent::before($method)) {
|
|
if (($_SESSION["access_level"] ?? 0) >= UserHelper::ACCESS_LEVEL_ADMIN) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|