Skip to content

fix(office): exclude external storage from the "Mine" filter#48

Open
moodyjmz wants to merge 1 commit into
mainfrom
fix/mine-filter-external-storage-owner
Open

fix(office): exclude external storage from the "Mine" filter#48
moodyjmz wants to merge 1 commit into
mainfrom
fix/mine-filter-external-storage-owner

Conversation

@moodyjmz

@moodyjmz moodyjmz commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

External storage mounts (SMB, local, etc.) report the browsing user as owner-id regardless of real ownership — most backends' getOwner() defaults to whoever is currently browsing when there is no single real owner. The overview's "Mine" filter only excluded group/shared mount-types, so files on a shared external mount showed up as "Mine" for every user who had it mounted.

This excludes external and external-session (session-credential mounts) from "Mine", alongside the existing group/shared. External files remain visible under the "All" filter — nc:mount-type cannot distinguish a personal external mount from a shared system one (both report external), so the trade-off is to keep them out of "Mine" rather than misattribute ownership.

Fixes #46


Note for reviewers: this PR is source-only. The npm-build check will be red ("Please recompile and commit the assets") until someone runs /compile on the PR so the nextcloud-command bot commits the rebuilt bundle. The second commit documents this workflow in the README.

Most storage backends' getOwner() defaults to whoever is currently
browsing when there's no single real owner, which is the normal case
for external storage. The "Mine" filter only excluded group/shared
mount-types, so files on a shared external storage mount showed up as
"Mine" for every user who had it mounted.

Fixes #46

Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz self-assigned this Jul 3, 2026
@moodyjmz moodyjmz added the bug Something isn't working label Jul 3, 2026
@moodyjmz moodyjmz requested a review from emberfiend July 3, 2026 11:42
@moodyjmz

moodyjmz commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

/compile

@moodyjmz moodyjmz force-pushed the fix/mine-filter-external-storage-owner branch from e1c3844 to 567a024 Compare July 3, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Mine" filter shows external storage files as owned by everyone

2 participants