Only overwrite notes if the LDAP user is new
This commit is contained in:
parent
269d3fe509
commit
bec2b170ec
1 changed files with 8 additions and 3 deletions
|
@ -243,7 +243,12 @@ class LdapAd extends LdapAdConfiguration
|
|||
if (array_key_exists('location_id',$userInfo)) {
|
||||
$user->location_id = $userInfo['location_id'];
|
||||
}
|
||||
|
||||
// this is a new user
|
||||
if (!isset($user->id)) {
|
||||
$user->notes = 'Imported from LDAP';
|
||||
}
|
||||
|
||||
$user->ldap_import = 1;
|
||||
|
||||
return $user;
|
||||
|
|
Loading…
Add table
Reference in a new issue