summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_usermanager.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-16 20:23:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-16 20:23:35 +0000
commit31b536532d1c0e469aa9526dce4627757d248f6f (patch)
tree52d9148842b3a5b28ff869c371db434826eee303 /usr/local/www/system_usermanager.php
parent03acfa4a1432415e611930cd9df0a096ba94d546 (diff)
downloadpfsense-31b536532d1c0e469aa9526dce4627757d248f6f.zip
pfsense-31b536532d1c0e469aa9526dce4627757d248f6f.tar.gz
Add custom priv for granting access to the user manager.
Diffstat (limited to 'usr/local/www/system_usermanager.php')
-rw-r--r--usr/local/www/system_usermanager.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php
index 80af866..e22013a 100644
--- a/usr/local/www/system_usermanager.php
+++ b/usr/local/www/system_usermanager.php
@@ -36,7 +36,12 @@ require("guiconfig.inc");
// The page title for non-admins
$pgtitle = array("System","User Password");
-if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER'])) {
+/* Check for custom priv system_usermanager (no .php ending) */
+$allowed = $g['privs'];
+if (in_array("system_usermanager", $allowed))
+ $isAdminUser = true;
+
+if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']) or $isAdminUser) {
// Page title for main admin
$pgtitle = array("System","User Manager");
@@ -134,8 +139,6 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER'])) {
if (isset($id) && $a_user[$id])
$userent = $a_user[$id];
-
-
/* the user did change his username */
if ($_POST['usernamefld'] <> $_POST['oldusername']) {
$_SERVER['REMOTE_USER'] = $_POST['usernamefld'];
OpenPOWER on IntegriCloud