Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(files_sharing): Hide own reshares
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Jul 1, 2025
commit 8e580f85485607f39fbbe42f274bbf253d5a9444
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/MountProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getMountsForUser(IUser $user, IStorageFactory $loader) {

// 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);
Expand Down
Loading