]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: user exists check on getHome, otherwise check will be performed with wrong...
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 18 Mar 2013 23:23:35 +0000 (00:23 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 18 Mar 2013 23:23:35 +0000 (00:23 +0100)
apps/user_ldap/user_ldap.php

index 44a1947859805c5935b06e68d6cb53aa8ac8ccff..6af876e483f945c8aef152ec12704b4957dc1cde 100644 (file)
@@ -180,6 +180,11 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface {
        * @return boolean
        */
        public function getHome($uid) {
+               // user Exists check required as it is not done in user proxy!
+               if(!$this->userExists($uid)) {
+                       return false;
+               }
+
                $cacheKey = 'getHome'.$uid;
                if($this->connection->isCached($cacheKey)) {
                        return $this->connection->getFromCache($cacheKey);