Merge pull request #54481 from nextcloud/backport/54479/stable31

This commit is contained in:
Kate 2025-08-19 13:03:50 +02:00 committed by GitHub
commit 2a2f109d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -863,7 +863,7 @@ class ShareAPIController extends OCSController {
$shares = array_merge($userShares, $groupShares, $circleShares, $roomShares, $deckShares, $sciencemeshShares);
$filteredShares = array_filter($shares, function (IShare $share) {
return $share->getShareOwner() !== $this->userId;
return $share->getShareOwner() !== $this->userId && $share->getSharedBy() !== $this->userId;
});
$formatted = [];