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>
pull/36565/head
Marc Hefter 3 years ago committed by Marc Hefter
parent 3020290751
commit 5c4a05cfd6
No known key found for this signature in database
GPG Key ID: AC45BA6A849F8610
  1. 2
      apps/user_ldap/lib/User/User.php

@ -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;
}
}

Loading…
Cancel
Save