CleanUp: removed redundant storing profile attributes in user settings

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com
Signed-off-by: Marc Hefter <marchefter@gmail.com>
This commit is contained in:
Marc Hefter 2023-02-17 15:25:17 +01:00 committed by Marc Hefter
parent 3020290751
commit 5c4a05cfd6
No known key found for this signature in database
GPG key ID: AC45BA6A849F8610

View file

@ -623,11 +623,9 @@ class User {
return;
}
$this->logger->debug('property updated: '.$profileProperty.'='.$value.' for user '.$this->getUsername().'', ['app' => 'user_ldap']);
$this->config->setUserValue($this->getUsername(), 'user_ldap', $property, $value);
return;
} else {
// FIXME: I decided, to leave profile untouched, if attribute gets removed from LDAP
$this->config->deleteUserValue($this->getUsername(), 'user_ldap', $property);
return;
}
}