Skip to content

Commit ca490df

Browse files
authored
Merge pull request #17418 from nextcloud/backport/17387/stable17
[stable17] Allow removing federated shares of locally reshared files
2 parents 2f4145e + bbf36b4 commit ca490df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

apps/federatedfilesharing/lib/FederatedShareProvider.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@ public function delete(IShare $share) {
563563
* @throws \OC\HintException
564564
*/
565565
protected function revokeShare($share, $isOwner) {
566+
if ($this->userManager->userExists($share->getShareOwner() && $this->userManager->userExists($share->getSharedBy()))) {
567+
// If both the owner and the initiator of the share are local users we don't have to notify anybody else
568+
return;
569+
}
570+
566571
// also send a unShare request to the initiator, if this is a different user than the owner
567572
if ($share->getShareOwner() !== $share->getSharedBy()) {
568573
if ($isOwner) {

0 commit comments

Comments
 (0)