diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-06-18 00:20:09 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-06-18 12:42:03 +0200 |
commit | a1f2dbe29ccb66863b70f134098a631053f3db0d (patch) | |
tree | a3bf0fe3a3c67a79cb50b6b1532658c3997725a8 /apps/user_ldap/lib/User_LDAP.php | |
parent | e432ead04d99e32a99c05cb48a3d77fa045446c9 (diff) | |
download | nextcloud-server-a1f2dbe29ccb66863b70f134098a631053f3db0d.tar.gz nextcloud-server-a1f2dbe29ccb66863b70f134098a631053f3db0d.zip |
caches the displayname after an LDAP plugin set it
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/User_LDAP.php')
-rw-r--r-- | apps/user_ldap/lib/User_LDAP.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index cdbc2e9b350..ada07aa53a9 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -506,7 +506,9 @@ class User_LDAP extends BackendUtility implements \OCP\IUserBackend, \OCP\UserIn */ public function setDisplayName($uid, $displayName) { if ($this->userPluginManager->implementsActions(Backend::SET_DISPLAYNAME)) { - return $this->userPluginManager->setDisplayName($uid, $displayName); + $this->userPluginManager->setDisplayName($uid, $displayName); + $this->access->cacheUserDisplayName($uid, $displayName); + return $displayName; } return false; } |