mirror of https://github.com/nextcloud/server
Merge pull request #1348 from karakayasemi/patch-1
Bug fix CachedMountInfo for user home storage
This commit is contained in:
commit
edb4a680e0
|
@ -98,7 +98,7 @@ class CachedMountInfo implements ICachedMountInfo {
|
||||||
// TODO injection etc
|
// TODO injection etc
|
||||||
Filesystem::initMountPoints($this->getUser()->getUID());
|
Filesystem::initMountPoints($this->getUser()->getUID());
|
||||||
$userNode = \OC::$server->getUserFolder($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) {
|
if (count($nodes) > 0) {
|
||||||
return $nodes[0];
|
return $nodes[0];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue