Skip to content

Commit 8e768ba

Browse files
Merge pull request #54489 from nextcloud/backport/54479/stable30
2 parents 34f6c33 + bc33cc5 commit 8e768ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ private function getSharedWithMe($node, bool $includeTags): array {
826826
$shares = array_merge($userShares, $groupShares, $circleShares, $roomShares, $deckShares, $sciencemeshShares);
827827

828828
$filteredShares = array_filter($shares, function (IShare $share) {
829-
return $share->getShareOwner() !== $this->currentUser;
829+
return $share->getShareOwner() !== $this->currentUser && $share->getSharedBy() !== $this->currentUser;
830830
});
831831

832832
$formatted = [];

0 commit comments

Comments
 (0)