F
Filament11mo ago
Lucas

stancl/tenant with filamentphp and block the panels from central a

Hi! someone already have used the stancl/tenant with filamentphp and block the panels from central and tenants?
4 Replies
_andypeacock
_andypeacock11mo ago
I'm working with it now - can you clarify what you mean? You want the panels blocked on both central and tenants? In which case, why have panels?
Lucas
LucasOP11mo ago
Hi nice to meet you. I’m working in a multi database and I have a panel for the tenants and a panel for the central The tenant can log the panel of central with the tenant credentials I want block the panel for central into the domain of tenant @_andypeacock thanks for join in the thread
Abrar
Abrar11mo ago
Why not use PreventAccessFromCentralDomains on tenant routes?
_andypeacock
_andypeacock11mo ago
Or each panel has a middleware property. Just add a middleware to the central panel to kick out the user if they don't have the rights access (eg, by user role). I just redirect anyone without the "super_admin" role that filament defines
Want results from more Discord servers?
Add your server