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
What are you using to control authorization in your app? How do you plan to handle permissions for the users and tenants?
im using spatie roles permission package
i.e some users can not creat new tenants only some user with permision or roleI'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