]> source.dussan.org Git - nextcloud-server.git/commitdiff
get all shares, not only first one per type
authortobiasKaminsky <tobias@kaminsky.me>
Thu, 8 Aug 2019 09:01:23 +0000 (11:01 +0200)
committertobiasKaminsky <tobias@kaminsky.me>
Thu, 8 Aug 2019 09:01:23 +0000 (11:01 +0200)
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
apps/dav/lib/Connector/Sabre/SharesPlugin.php

index ddc9312771b5ead52ad4d6d0c8aa1d9003c29cb0..5edf28e6e50c733eff12ef1a084ec6b74ffc86eb 100644 (file)
@@ -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;