diff options
author | Semih Serhat Karakaya <karakayasemi@itu.edu.tr> | 2016-09-09 18:07:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-09 18:07:21 +0300 |
commit | cfc1c7cbd20de4f4c9513c365414f89117d575b8 (patch) | |
tree | 093f9bda17a5981711c0fe8eff87d5b5ce650315 /lib/private | |
parent | 3fc37b2fc59f037c2da53a94207f43b1497eaaec (diff) | |
download | nextcloud-server-cfc1c7cbd20de4f4c9513c365414f89117d575b8.tar.gz nextcloud-server-cfc1c7cbd20de4f4c9513c365414f89117d575b8.zip |
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
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Config/CachedMountInfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Config/CachedMountInfo.php b/lib/private/Files/Config/CachedMountInfo.php index f68949f8d55..74812b3ed8c 100644 --- a/lib/private/Files/Config/CachedMountInfo.php +++ b/lib/private/Files/Config/CachedMountInfo.php @@ -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 { |