summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2019-07-25 17:58:13 +0200
committerJulius Härtl <jus@bitgrid.net>2019-08-02 08:39:39 +0200
commita2c5ab2f8ba66cf5e9a65bb6dcc232675c31f034 (patch)
treec9deccedf5cdfb046e921aea64fa6cb94df604a7 /apps/user_ldap/lib
parentd577076457d2e07345224f5030d7a177de1238f5 (diff)
downloadnextcloud-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.php5
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;
}