mirror of
https://github.com/nextcloud/server.git
synced 2026-02-21 17:01:34 -05:00
Merge pull request #54481 from nextcloud/backport/54479/stable31
This commit is contained in:
commit
2a2f109d9c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue