Correctly deterimine if user is local

This commit is contained in:
Scott Ullrich 2008-02-19 05:29:54 +00:00
parent 82e913df9c
commit 30283b9d35

View File

@ -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");