get all shares, not only first one per type

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-08-08 11:01:23 +02:00
parent 82ae6fb6d3
commit eb564e82de
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7
1 changed files with 1 additions and 2 deletions

View 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;