mirror of https://github.com/nextcloud/server
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:
parent
3fc37b2fc5
commit
cfc1c7cbd2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue