get all shares, not only first one per type
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
82ae6fb6d3
commit
eb564e82de
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue