Closed enviniom closed 4 years ago
You'd have to add \Authorization\Exception\ForbiddenException
to the list of handled exceptions
to catch those errors, that is what is being thrown by the request handler middleware and by the authorization component (unless you're doing manual can*
checks).
Thanks a lot, now it is working.
Hi, I can't make a redirect for unathorized actions, and i made configuration like say in docs:
But, still shows the error page with "Identity is not authorized to perform (...)" and I can't redirect to /principal/noauthorized