feat(multi-tenant): Add option to pass a filter function for tenants array #14051
Replies: 3 comments 1 reply
-
|
I'd also like to see this feature implemented, as it would enable role-based tenant selection. For example, if you're a member of one tenant and an admin of two other tenants, you would only see the 2 tenants you're administrating in the selector. |
Beta Was this translation helpful? Give feedback.
-
|
Couldn't this be handled by returning a filter query in the |
Beta Was this translation helpful? Give feedback.
-
|
Hey @simovicaleksa this is being resolved here: #14620 Feel free to follow the PR for updates! |
Beta Was this translation helpful? Give feedback.
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
superadminusers 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.tswould 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