Skip to content

Commit

Permalink
Update CachedMountInfo for user home storage
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
karakayasemi authored Sep 2, 2016
1 parent 1826836 commit 14df995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Config/CachedMountInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getMountPointNode() {
// 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 {
Expand Down

0 comments on commit 14df995

Please sign in to comment.