diff options
author | tobiasKaminsky <tobias@kaminsky.me> | 2019-08-08 11:01:23 +0200 |
---|---|---|
committer | tobiasKaminsky <tobias@kaminsky.me> | 2019-08-08 11:01:23 +0200 |
commit | eb564e82de449128007ccb9748d698ab65a45591 (patch) | |
tree | 7afa49c9ce428ea553c5c236cc94b1a1a48f50ab /apps/dav/lib/Connector | |
parent | 82ae6fb6d31274a84040b1984a4f35c79c8a400a (diff) | |
download | nextcloud-server-eb564e82de449128007ccb9748d698ab65a45591.tar.gz nextcloud-server-eb564e82de449128007ccb9748d698ab65a45591.zip |
get all shares, not only first one per type
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/SharesPlugin.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index ddc9312771b..5edf28e6e50 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; |