Update CachedMountInfo for user home storage

In getMountPointNode function rootId is not inside of the userFolder for home storage. We was searching '/user' folder in '/user/files' folder. So, it was return NULL. I moved searching part to parent folder. It solves everything. Also, obviously other storage types not affect then this change.

Related owncloud commit :
https://github.com/owncloud/core/pull/26017
This commit is contained in:
Semih Serhat Karakaya 2016-09-09 18:07:21 +03:00 committed by GitHub
parent 3fc37b2fc5
commit cfc1c7cbd2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class CachedMountInfo implements ICachedMountInfo {
// TODO injection etc
Filesystem::initMountPoints($this->getUser()->getUID());
$userNode = \OC::$server->getUserFolder($this->getUser()->getUID());
$nodes = $userNode->getById($this->getRootId());
$nodes = $userNode->getParent()->getById($this->getRootId());
if (count($nodes) > 0) {
return $nodes[0];
} else {