Merge pull request #54489 from nextcloud/backport/54479/stable30

pull/54508/head
Kate 2025-08-19 12:04:37 +07:00 committed by GitHub
commit 8e768ba2c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -826,7 +826,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->currentUser;
return $share->getShareOwner() !== $this->currentUser && $share->getSharedBy() !== $this->currentUser;
});
$formatted = [];