aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-03-08 11:23:20 +0100
committerVincent Petry <pvince81@owncloud.com>2016-03-08 14:46:42 +0100
commite5a107cc455122edf729b61ee249c35caedda02f (patch)
tree8c4547d8a43de747554bbcd1fc6c2abc15c7dec4 /apps
parent15833d9843c3ff7c0cb51b95f8610bddb044472d (diff)
downloadnextcloud-server-e5a107cc455122edf729b61ee249c35caedda02f.tar.gz
nextcloud-server-e5a107cc455122edf729b61ee249c35caedda02f.zip
Fix share mounting recursion
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/sharedstorage.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php
index 600599d7175..6998f94698e 100644
--- a/apps/files_sharing/lib/sharedstorage.php
+++ b/apps/files_sharing/lib/sharedstorage.php
@@ -85,6 +85,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
}
private function isValid() {
+ $this->init();
return ($this->sourceRootInfo->getPermissions() & Constants::PERMISSION_SHARE) === Constants::PERMISSION_SHARE;
}
@@ -566,6 +567,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
}
public function getCache($path = '', $storage = null) {
+ $this->init();
if (!$storage) {
$storage = $this;
}