]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref-instances: check access level
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Apr 2011 12:04:50 +0000 (16:04 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Apr 2011 12:04:50 +0000 (16:04 +0400)
modules/pref-instances.php

index d3510c2877ba6a5137b75c152aecd59fd5fdb3dc..5735df59ce1f995852e89a368e134caf91333acb 100644 (file)
@@ -1,6 +1,11 @@
 <?php
        function module_pref_instances($link) {
 
+               if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) {
+                       print __("Your access level is insufficient to open this tab.");
+                       return;
+               }
+
                $subop = $_REQUEST['subop'];
 
                if ($subop == "remove") {