diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-01 10:02:25 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-01 10:02:25 +0200 |
commit | 85d5400314d3b01563b4af4ab1c30c3cf2d79722 (patch) | |
tree | 2485d27a16e338f3df917417cc6f8440396cac5a /apps/dav/lib/Connector/Sabre/SharesPlugin.php | |
parent | 42f00e80c7175ab199cb6d2bfae358c0cbb0517b (diff) | |
download | nextcloud-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.php | 2 |
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; |