Reputation: 31548
I am using JMS Security bundle to secure methods and controllers. When non previleged user access the secure page then i get this error
Token does not have the required roles.
Is there any way , i can make that custom page and more defined error message
Upvotes: 1
Views: 3407
Reputation: 22817
If JMSSecurityExtraBundle answers you with a 403
error [and it should], you may customize it following Symfony guidelines.
Upvotes: 4