]> git.wh0rd.org Git - tt-rss.git/commitdiff
add access level check to user editor
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 16 May 2008 06:03:14 +0000 (07:03 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 16 May 2008 06:03:14 +0000 (07:03 +0100)
modules/pref-users.php

index 399fc5e1ef2e237ed7fb8257c2d3a0dbd349f4bf..6abd4ca4b794736b7a63b1a67c0685d11bf11b6b 100644 (file)
@@ -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") {