F
Filamentβ€’9mo ago
sven

Can I use the tenant switcher without tenants?

Hey! I have a system where the main resources are shared between different organizations / passed around. Very rarely does data belong to a single organization. As such I have my own set of access policies and scopes to ensure who can see what. I still would like users to switch between organizations. As the requirements are quite simple on a technical level, the only missing piece for me would be an intuitive UI for the switcher within the sidebar.
3 Replies
Lara Zeus
Lara Zeusβ€’9mo ago
make custom component and use render hook
sven
svenOPβ€’9mo ago
You mean to rebuild the tenant-UI myself? In the meantime I found I can set Resource::scopeToTenant(false); and that works fine for using the app and showing the switcher. Then the only missing piece would be to fire a custom hook after clicking on a tenant
Lara Zeus
Lara Zeusβ€’9mo ago
yes, since you have custom use case! but if scopeToTenant works, nice πŸ‘
Want results from more Discord servers?
Add your server