Skip to content

fix(plugin-multi-tenant): constrain results to assigned tenants when present - #13365

Merged
DanRibbens merged 3 commits into
mainfrom
fix/multi-tenant-base-filters
Aug 5, 2025
Merged

DanRibbens merged 3 commits into
mainfrom
fix/multi-tenant-base-filters

Conversation

@JarrodMFlesch

@JarrodMFlesch JarrodMFlesch commented Aug 4, 2025 •

Copy link
Copy Markdown
Contributor

Extension of #13213

This PR correctly filters tenants, users and documents based on the users assigned tenants if any are set. If a user is assigned tenants then list results should only show documents with those tenants (when selector is not set). Previously you could construct access results that allows them to see them, but in the confines of the admin panel they should not see them. If you wanted a user to be able to see a "public" tenant while inside the admin panel they either need to be added to the tenant or have no tenants at all.

Note that this is for filtering only, access control still controls what documents a user has access to a document. The filters are and always have been a way to filter out results in the list view.

@JarrodMFlesch JarrodMFlesch changed the title Fix/multi tenant base filters fix(plugin-multi-tenant): constrain results to assigned tenants when present Aug 4, 2025
@github-actions

github-actions Bot commented Aug 4, 2025

Copy link
Copy Markdown
Contributor

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@DanRibbens
DanRibbens merged commit 20b4de9 into main Aug 5, 2025
@DanRibbens
DanRibbens deleted the fix/multi-tenant-base-filters branch August 5, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants