]> source.dussan.org Git - nextcloud-server.git/commitdiff
adjusts LDAP's home handler to use the correct user object
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Thu, 25 Jul 2019 15:58:13 +0000 (17:58 +0200)
committerJulius Härtl <jus@bitgrid.net>
Fri, 2 Aug 2019 06:39:39 +0000 (08:39 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/user_ldap/lib/Handler/ExtStorageConfigHandler.php

index 9445adbd5b65bed02fa653f7e2d611820186cd9c..3a60b348393242f2118513dcc7a01111e209513b 100644 (file)
@@ -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;
                }