CanAccessPanel logic causing 403 error for livewire.update on Tenant Registration Form
Dealing with an issue that I think comes down to inexperience.
In my development environment, I am working on my logic for what panels a user has access to.
in my user model, i have these functions:
Simple enough. Does what it is supposed to. However, I ran into problems. Because a newly registered user is not associated with a tenant yet, the user was not able to access the company/new page to create a tenant. Additionally, I realized they couldn't access the /company/logout page. Each presented with a 403 error.
This is where I worry I'm messing up. I added some exceptions based on routes:
In my development environment, I am working on my logic for what panels a user has access to.
in my user model, i have these functions:
Simple enough. Does what it is supposed to. However, I ran into problems. Because a newly registered user is not associated with a tenant yet, the user was not able to access the company/new page to create a tenant. Additionally, I realized they couldn't access the /company/logout page. Each presented with a 403 error.
This is where I worry I'm messing up. I added some exceptions based on routes: