From a2c5ab2f8ba66cf5e9a65bb6dcc232675c31f034 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 25 Jul 2019 17:58:13 +0200 Subject: [PATCH] adjusts LDAP's home handler to use the correct user object Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php b/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php index 9445adbd5b6..3a60b348393 100644 --- a/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php +++ b/apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php @@ -39,8 +39,9 @@ class ExtStorageConfigHandler extends UserContext implements IConfigHandler { */ public function handle($optionValue) { $this->placeholder = 'home'; - $user = $this->getSession()->getUser(); - if($user === null) { + $user = $this->getUser(); + + if($user->getUID() === null) { return $optionValue; } -- 2.39.5