|
@@ 564-566 (lines=3) @@
|
| 561 |
|
if($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) { |
| 562 |
|
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_EMAIL, $node, false, -1, 0)); |
| 563 |
|
} |
| 564 |
|
if ($this->shareManager->outgoingServer2ServerSharesAllowed()) { |
| 565 |
|
$shares = array_merge($shares, $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_REMOTE, $node, false, -1, 0)); |
| 566 |
|
} |
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
$formatted = []; |
|
@@ 642-646 (lines=5) @@
|
| 639 |
|
$userShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_USER, $path, $reshares, -1, 0); |
| 640 |
|
$groupShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_GROUP, $path, $reshares, -1, 0); |
| 641 |
|
$linkShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_LINK, $path, $reshares, -1, 0); |
| 642 |
|
if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_EMAIL)) { |
| 643 |
|
$mailShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_EMAIL, $path, $reshares, -1, 0); |
| 644 |
|
} else { |
| 645 |
|
$mailShares = []; |
| 646 |
|
} |
| 647 |
|
if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) { |
| 648 |
|
$circleShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_CIRCLE, $path, $reshares, -1, 0); |
| 649 |
|
} else { |
|
@@ 647-651 (lines=5) @@
|
| 644 |
|
} else { |
| 645 |
|
$mailShares = []; |
| 646 |
|
} |
| 647 |
|
if ($this->shareManager->shareProviderExists(\OCP\Share::SHARE_TYPE_CIRCLE)) { |
| 648 |
|
$circleShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_CIRCLE, $path, $reshares, -1, 0); |
| 649 |
|
} else { |
| 650 |
|
$circleShares = []; |
| 651 |
|
} |
| 652 |
|
|
| 653 |
|
$shares = array_merge($userShares, $groupShares, $linkShares, $mailShares, $circleShares); |
| 654 |
|
|
|
@@ 655-658 (lines=4) @@
|
| 652 |
|
|
| 653 |
|
$shares = array_merge($userShares, $groupShares, $linkShares, $mailShares, $circleShares); |
| 654 |
|
|
| 655 |
|
if ($this->shareManager->outgoingServer2ServerSharesAllowed()) { |
| 656 |
|
$federatedShares = $this->shareManager->getSharesBy($this->currentUser, \OCP\Share::SHARE_TYPE_REMOTE, $path, $reshares, -1, 0); |
| 657 |
|
$shares = array_merge($shares, $federatedShares); |
| 658 |
|
} |
| 659 |
|
|
| 660 |
|
$formatted = []; |
| 661 |
|
foreach ($shares as $share) { |