add access level check to user editor

This commit is contained in:
Andrew Dolgov 2008-05-16 07:03:14 +01:00
parent fc5b8e2b64
commit 85ef21180b
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@
global $access_level_names; 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"]; $subop = $_GET["subop"];
if ($subop == "edit") { if ($subop == "edit") {