mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #54479 from nextcloud/fix/files_sharing/shared-with-me-hide-own-reshares
This commit is contained in:
commit
d300e32c06
1 changed files with 1 additions and 1 deletions
|
|
@ -867,7 +867,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