api-components-bundle icon indicating copy to clipboard operation
api-components-bundle copied to clipboard

Docs: adding your own custom security logic to a route resource

Open silverbackdan opened this issue 3 years ago • 0 comments

When getting a collection of routes, document how to apply security when getting a collection. But for getting a route item we add a security parameter to metadata which will be over-written if you implement your own. Document how to extend this and use the route voter by adding sprintf("is_granted('%s', object)", AbstractRoutableVoter::READ_ROUTABLE) yourself.

silverbackdan avatar Dec 27 '21 15:12 silverbackdan