mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly deterimine if user is local
This commit is contained in:
parent
82e913df9c
commit
30283b9d35
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user