mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Only overwrite notes if the LDAP user is new
This commit is contained in:
parent
269d3fe509
commit
bec2b170ec
|
@ -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…
Reference in a new issue