mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix(files_sharing): Hide own reshares
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
987af4193d
commit
0cf2295516
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,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