From: Andrew Dolgov Date: Fri, 16 May 2008 06:03:14 +0000 (+0100) Subject: add access level check to user editor X-Git-Tag: 1.2.23-final~124 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=85ef21180b828f383d73ae6daaa2dbb5947fafca;p=tt-rss.git add access level check to user editor --- diff --git a/modules/pref-users.php b/modules/pref-users.php index 399fc5e1..6abd4ca4 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -3,6 +3,11 @@ global $access_level_names; + if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) { + print __("Your access level is insufficient to open this tab."); + return; + } + $subop = $_GET["subop"]; if ($subop == "edit") {