Allow to show what permissions a user is lacking in case of access denied message

Should help with errors like 1026
This commit is contained in:
Jan Böhmer 2025-09-06 00:10:50 +02:00
parent ba7d139f8a
commit 117ff4484d
3 changed files with 35 additions and 6 deletions

View file

@ -1,6 +1,9 @@
{% extends "bundles/TwigBundle/Exception/error.html.twig" %}
{% block status_comment %}
Nice try! But you are not allowed to do this!
Nice try! But you are not allowed to do this!<br>
<code>{{ exception.message }}</code>
<br> <small>If you think you should have access to this ressource, contact the adminstrator.</small>
{% endblock %}
{% endblock %}