Skip to content

Conversation

JarrodMFlesch
Copy link
Contributor

@JarrodMFlesch JarrodMFlesch commented Aug 4, 2025

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
Copy link
Contributor

github-actions bot commented Aug 4, 2025

📦 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
173 of 177 checks passed
@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