Skip to content

fix(plugin-multi-tenant): return false instead of query when no tenants#15679

Merged
JarrodMFlesch merged 1 commit intomainfrom
fix/multi-tenant-no-tenants-access
Feb 19, 2026
Merged

fix(plugin-multi-tenant): return false instead of query when no tenants#15679
JarrodMFlesch merged 1 commit intomainfrom
fix/multi-tenant-no-tenants-access

Conversation

@JarrodMFlesch
Copy link
Copy Markdown
Contributor

@JarrodMFlesch JarrodMFlesch commented Feb 18, 2026

Fixes #15638

Summary

Users with zero tenants generated { $in: [] } queries that Azure CosmosDB cannot handle. This returns access denied instead of the empty query, while still allowing users to access their own user document.

Users with zero tenants generated { : [] } queries that Azure CosmosDB cannot handle. Now returns access denied instead of empty query.
@github-actions
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! 🙌

@JarrodMFlesch JarrodMFlesch added the plugin: multi-tenant @payloadcms/plugin-multi-tenant label Feb 18, 2026
@JarrodMFlesch JarrodMFlesch merged commit f5a5bd8 into main Feb 19, 2026
304 of 307 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/multi-tenant-no-tenants-access branch February 19, 2026 13:04
@github-actions
Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.78.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[plugin-multi-tenant] getTenantAccess() generates { $in: [] } query for users with zero tenants — crashes CosmosDB

2 participants