feat(multi-tenant): Add option to pass a filter function for tenants array #14051
simovicaleksa
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Add option to pass a filter function to the tenants array/select. My use case for this would be so
superadmin
users can only edit specific tenants on their respective domains.So for example in application with 3 tenants (e.g. A, B and C):
Example of such configuration in
payload.config.ts
would look something like this:As far as I can see the only way to implement something like this would be to create a custom component for the tenant selection which is far from ideal.
Beta Was this translation helpful? Give feedback.
All reactions