Browse Source
fix(files_sharing): Hide own reshares
Signed-off-by: provokateurin <kate@provokateurin.de>
pull/53304/head
provokateurin
5 months ago
Failed to extract signature
1 changed files with
1 additions and
1 deletions
-
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->getShareOwner() !== $user->getUID() && $share->getSharedBy() !== $user->getUID(); |
|
|
|
}); |
|
|
|
|
|
|
|
$superShares = $this->buildSuperShares($shares, $user); |
|
|
|
|