Resource visible in sidebar even if `viewAny()` returns false
As per title, I have a resource that's only available to certain users.
According to the docs here https://filamentphp.com/docs/3.x/panels/resources/getting-started#authorization the link should not be visible if they don't have access to it. However, that's not the case for me. They can still see the link but they get a 403 when trying click on it (as expected)
The navigation menu is build 'manually'
(not sure what else I need to provide. The resource itself is as boilerplate as it gets)
When I put a breakpoint in the
Am I missing something or doing something wrong?
According to the docs here https://filamentphp.com/docs/3.x/panels/resources/getting-started#authorization the link should not be visible if they don't have access to it. However, that's not the case for me. They can still see the link but they get a 403 when trying click on it (as expected)
The navigation menu is build 'manually'
(not sure what else I need to provide. The resource itself is as boilerplate as it gets)
When I put a breakpoint in the
viewAny() call in the policy, it looks like it's never hit.Am I missing something or doing something wrong?