Multiple panels and resource access (routes)
I have two panels, one for admin and another one for member, they both use the same User model.
I've setup the canAccessPanel to allow depending on privilege like this (which works nicely):
But I noticed when I created resource for the admin, its accessible from the member panel by the route and it returns blank white page instead 404 or 403.
Is there something I'm missing to prevent it to give page 404 at or something else, I have the panels providers pretty much unchanged other than using subdomains?
1 Reply
For example when i create User resource for admin panel, the route /users and /users/1 work in member panel but they return white pages. But if i change the user id to something that does not exist i get 404 🤔
Also checked route:list and member subdomain does not appear to have that route, but yet it works
Ok im actually semi stupid here cuz it works due to my Users controller i have.
I suppose the correct fix would be to bind the web routes to the main domain