1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:55:55 +00:00

add Handler_Administrative

This commit is contained in:
Andrew Dolgov
2021-02-14 15:50:46 +03:00
parent 33ea46c2bc
commit 0b7377238a
3 changed files with 13 additions and 24 deletions

View File

@@ -0,0 +1,11 @@
<?php
class Handler_Administrative extends Handler_Protected {
function before($method) {
if (parent::before($method)) {
if (($_SESSION["access_level"] ?? 0) >= 10) {
return true;
}
}
return false;
}
}