aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/SharesPlugin.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-08-01 10:02:25 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-08-01 10:02:25 +0200
commit85d5400314d3b01563b4af4ab1c30c3cf2d79722 (patch)
tree2485d27a16e338f3df917417cc6f8440396cac5a /apps/dav/lib/Connector/Sabre/SharesPlugin.php
parent42f00e80c7175ab199cb6d2bfae358c0cbb0517b (diff)
downloadnextcloud-server-85d5400314d3b01563b4af4ab1c30c3cf2d79722.tar.gz
nextcloud-server-85d5400314d3b01563b4af4ab1c30c3cf2d79722.zip
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/SharesPlugin.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/SharesPlugin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
index eba91229955..ddc9312771b 100644
--- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php
@@ -158,6 +158,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin {
if (array_search($parentPath, $this->cachedFolders) === false) {
$node = $this->userFolder->get($sabreNode->getPath());
$shares = $this->getShare($node);
+ $this->cachedShares[$sabreNode->getId()] = $shares;
} else {
return [];
}
@@ -190,6 +191,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin {
) {
$folderNode = $this->userFolder->get($sabreNode->getPath());
+ $this->cachedFolders[] = $sabreNode->getPath();
$childShares = $this->getSharesFolder($folderNode);
foreach ($childShares as $id => $shares) {
$this->cachedShares[$id] = $shares;