diff options
author | provokateurin <kate@provokateurin.de> | 2025-04-28 14:41:21 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2025-04-28 14:41:21 +0200 |
commit | 2b402dc69264eab6fd9802e87267653f151aff49 (patch) | |
tree | 7630bc7ecd6fd0c9e377f08b25c9d0d98c2bec46 | |
parent | 1cb1f39279cea852f04b3611265fea617be6cc4d (diff) | |
download | nextcloud-server-fix/files_sharing/filter-own-reshared-shares.tar.gz nextcloud-server-fix/files_sharing/filter-own-reshared-shares.zip |
fix(files_sharing): Filter own shares that are resharesfix/files_sharing/filter-own-reshared-shares
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r-- | apps/files_sharing/lib/MountProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php index ea99023676b..2b60e5f2463 100644 --- a/apps/files_sharing/lib/MountProvider.php +++ b/apps/files_sharing/lib/MountProvider.php @@ -55,7 +55,7 @@ class MountProvider implements IMountProvider { // filter out excluded shares and group shares that includes self $shares = array_filter($shares, function (IShare $share) use ($user) { - return $share->getPermissions() > 0 && $share->getShareOwner() !== $user->getUID(); + return $share->getPermissions() > 0 && $share->getSharedBy() !== $user->getUID(); }); $superShares = $this->buildSuperShares($shares, $user); |