From 85ef21180b828f383d73ae6daaa2dbb5947fafca Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 16 May 2008 07:03:14 +0100 Subject: [PATCH] add access level check to user editor --- modules/pref-users.php | 5 +++++ 1 file changed, 5 insertions(+) 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") { -- 2.39.5