F
Filament5mo 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
_andypeacock5mo 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
Lucas5mo 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
abrardev99
abrardev995mo ago
Why not use PreventAccessFromCentralDomains on tenant routes?
_andypeacock
_andypeacock5mo 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