Secure resource custom page

How can I secure a custom page within a resource for users who do not have a specific permission? I have hidden the action button with this, but if I type the URL of the custom page enters without problems:

https://filamentphp.com/docs/3.x/actions/trigger-button#authorization
Was this page helpful?