-
Notifications
You must be signed in to change notification settings - Fork 278
Allow custom exception message for @Security annotation #311
Conversation
+1 Waiting for this feature P.S. The message should be translable |
I think you can always make it translable with manually providing translation key instead of actual message and writing custom exception handler template with calling
|
Related to #196 |
+1 |
1 similar comment
+1 |
The message parameter allows you to customize the text shown to the user at the exception or error pages:: | ||
|
||
/** | ||
* @Security("is_granted('POST_SHOW', post)",message="You have no rights to view this post.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space after comma
+1 |
1 similar comment
+1 |
+1 When is it available ? |
+1 |
I assume a year was enough to make any suggestions or discussions. Nevertheless no reaction, so closing |
+1 |
+1 |
+1 |
+1 Please reopen it.. |
+1 |
2 similar comments
+1 |
+1 |
Can this be re-opened? First time i've come to use security via the annotation and this is immediately needed. |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+10 |
can reopen ? |
+1 |
1 similar comment
+1 |
Created #501 as a replacement, thanks for your upvotes |
Custom exception messages are essential to generate customized exception and error page views. Default message is not always acceptable to be displayed to the end user at least because of disclosing security expression used to restrict access.