summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/system_usermanager.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php
index 7009531..e82ce23 100644
--- a/usr/local/www/system_usermanager.php
+++ b/usr/local/www/system_usermanager.php
@@ -461,7 +461,8 @@ if (isSystemAdmin($HTTP_SERVER_VARS['AUTH_USER']) or $isAdminUser == true) {
/* deterimine if user is not local to system */
$islocal = false;
foreach($config['system']['user'] as $user)
- $islocal = true;
+ if($user['name'] == $_SESSION['Username'])
+ $islocal = true;
if($islocal == false) {
echo "Sorry, you cannot change the password for a LDAP user.";
include("fend.inc");
OpenPOWER on IntegriCloud