Skip to content

Commit 2b402dc

Browse files
committed
fix(files_sharing): Filter own shares that are reshares
Signed-off-by: provokateurin <kate@provokateurin.de>
1 parent 1cb1f39 commit 2b402dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/MountProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {
5555

5656
// filter out excluded shares and group shares that includes self
5757
$shares = array_filter($shares, function (IShare $share) use ($user) {
58-
return $share->getPermissions() > 0 && $share->getShareOwner() !== $user->getUID();
58+
return $share->getPermissions() > 0 && $share->getSharedBy() !== $user->getUID();
5959
});
6060

6161
$superShares = $this->buildSuperShares($shares, $user);

0 commit comments

Comments
 (0)