mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
fix(files_sharing): Hide own reshares
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
2e5ccc7123
commit
8e580f8548
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue