S
S
Steve2021-06-10 11:25:55
symfony
Steve, 2021-06-10 11:25:55

@IsGranted. How can I display my own error message instead of the standard one?

When the condition is false @IsGranted shows its standard error message Access Denied by controller annotation @IsGranted. How can I display my own error message instead of the standard one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2021-06-10
@CenterJoin

How to Customize Access Denied Responses

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question