mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:25:55 +00:00
add Handler_Administrative
This commit is contained in:
@@ -1,20 +1,9 @@
|
||||
<?php
|
||||
|
||||
class Pref_System extends Handler_Protected {
|
||||
class Pref_System extends Handler_Administrative {
|
||||
|
||||
private $log_page_limit = 15;
|
||||
|
||||
function before($method) {
|
||||
if (parent::before($method)) {
|
||||
if ($_SESSION["access_level"] < 10) {
|
||||
print __("Your access level is insufficient to open this tab.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function csrf_ignore($method) {
|
||||
$csrf_ignored = array("index");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user