From 5c4a05cfd68bb0397cb033f7c5d957ed6f9eabd0 Mon Sep 17 00:00:00 2001 From: Marc Hefter Date: Fri, 17 Feb 2023 15:25:17 +0100 Subject: [PATCH] CleanUp: removed redundant storing profile attributes in user settings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com Signed-off-by: Marc Hefter --- apps/user_ldap/lib/User/User.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index f1be9b28cab..4807280dc40 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/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; } }