|
@@ 555-557 (lines=3) @@
|
| 552 |
|
if($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) { |
| 553 |
|
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_EMAIL, $node, false, -1, 0)); |
| 554 |
|
} |
| 555 |
|
if ($this->shareManager->outgoingServer2ServerSharesAllowed()) { |
| 556 |
|
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_REMOTE, $node, false, -1, 0)); |
| 557 |
|
} |
| 558 |
|
} |
| 559 |
|
|
| 560 |
|
$formatted = []; |
|
@@ 631-635 (lines=5) @@
|
| 628 |
|
$userShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_USER, $path, $reshares, -1, 0); |
| 629 |
|
$groupShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_GROUP, $path, $reshares, -1, 0); |
| 630 |
|
$linkShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_LINK, $path, $reshares, -1, 0); |
| 631 |
|
if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) { |
| 632 |
|
$mailShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_EMAIL, $path, $reshares, -1, 0); |
| 633 |
|
} else { |
| 634 |
|
$mailShares = []; |
| 635 |
|
} |
| 636 |
|
if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) { |
| 637 |
|
$circleShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_CIRCLE, $path, $reshares, -1, 0); |
| 638 |
|
} else { |
|
@@ 636-640 (lines=5) @@
|
| 633 |
|
} else { |
| 634 |
|
$mailShares = []; |
| 635 |
|
} |
| 636 |
|
if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) { |
| 637 |
|
$circleShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_CIRCLE, $path, $reshares, -1, 0); |
| 638 |
|
} else { |
| 639 |
|
$circleShares = []; |
| 640 |
|
} |
| 641 |
|
|
| 642 |
|
$shares = array_merge($userShares, $groupShares, $linkShares, $mailShares, $circleShares); |
| 643 |
|
|
|
@@ 644-647 (lines=4) @@
|
| 641 |
|
|
| 642 |
|
$shares = array_merge($userShares, $groupShares, $linkShares, $mailShares, $circleShares); |
| 643 |
|
|
| 644 |
|
if ($this->shareManager->outgoingServer2ServerSharesAllowed()) { |
| 645 |
|
$federatedShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_REMOTE, $path, $reshares, -1, 0); |
| 646 |
|
$shares = array_merge($shares, $federatedShares); |
| 647 |
|
} |
| 648 |
|
|
| 649 |
|
$formatted = []; |
| 650 |
|
foreach ($shares as $share) { |