F
Filament2y ago
DS

is possible to condition the profile and register tenant for some users on the panel config?

i would like to hide profile edition on tenant and also register new tenant for some users without create new panel ... is possible to do that? i.e some users can not creat new tenants only some user with permision or role
3 Replies
Patrick Boivin
What are you using to control authorization in your app? How do you plan to handle permissions for the users and tenants?
DS
DSOP2y ago
im using spatie roles permission package
Patrick Boivin
i.e some users can not creat new tenants only some user with permision or role
I'm not sure this can be done from the panel config... Maybe you can handle this in your Tenant model policy? To hide the profile page conditionally, I think one option would be to override the canView() method on your EditTenantProfile class

Did you find this page helpful?