Conditional Multi-Tenancy Panel Redirect
Well hello there! I have a panel with Multi-Tenancy in my app. When a user that has not yet any tenants clicks the link to the panel, he will get a 404. Now I can configure the panel with a tenant registration page. Now instead of a 404 the user will get directed to that creation page. However, I don't want all users to be able to create a tenant. So I adjusted my Policy class for the tenant model. Now the users get a 404 again.
Is there a possibilty to configure conditional redirects? Admin users should be able to create a new model, while other users should see a page that informs them to "ask an admin to have them added to a tenant"
Is there a possibilty to configure conditional redirects? Admin users should be able to create a new model, while other users should see a page that informs them to "ask an admin to have them added to a tenant"