diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2019-07-25 17:58:13 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-08-02 08:39:39 +0200 |
commit | a2c5ab2f8ba66cf5e9a65bb6dcc232675c31f034 (patch) | |
tree | c9deccedf5cdfb046e921aea64fa6cb94df604a7 /apps/user_ldap/lib | |
parent | d577076457d2e07345224f5030d7a177de1238f5 (diff) | |
download | nextcloud-server-a2c5ab2f8ba66cf5e9a65bb6dcc232675c31f034.tar.gz nextcloud-server-a2c5ab2f8ba66cf5e9a65bb6dcc232675c31f034.zip |
adjusts LDAP's home handler to use the correct user object
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php | 5 |
1 files 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; } |