From eb564e82de449128007ccb9748d698ab65a45591 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 8 Aug 2019 11:01:23 +0200 Subject: [PATCH] get all shares, not only first one per type Signed-off-by: tobiasKaminsky --- apps/dav/lib/Connector/Sabre/SharesPlugin.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index ddc9312771..5edf28e6e5 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -123,13 +123,12 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { \OCP\Share::SHARE_TYPE_CIRCLE, ]; foreach ($requestedShareTypes as $requestedShareType) { - // one of each type is enough to find out about the types $shares = $this->shareManager->getSharesBy( $this->userId, $requestedShareType, $node, false, - 1 + -1 ); foreach ($shares as $share) { $result[] = $share;