From 9e5994a2106796106d91aee5dc98dd108bf28381 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 9445adbd5b..3a60b34839 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; }