summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-05-16 07:03:14 +0100
committerAndrew Dolgov <[email protected]>2008-05-16 07:03:14 +0100
commit85ef21180b828f383d73ae6daaa2dbb5947fafca (patch)
tree4268bdbb935aab8f319b6ee09c83719a71a9af8a /modules
parentfc5b8e2b64e7779ef9a4eaaa3cf9559e5f9f0bf7 (diff)
add access level check to user editor
Diffstat (limited to 'modules')
-rw-r--r--modules/pref-users.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/pref-users.php b/modules/pref-users.php
index 399fc5e1e..6abd4ca4b 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") {