From 11d08dbe226c1fc3ff6b08fa8ad06700cf2e6489 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 12 Aug 2021 17:43:14 +0200 Subject: [PATCH] Update to new config tree Add trace for admin --- Resources/views/security/denied.html.twig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Resources/views/security/denied.html.twig b/Resources/views/security/denied.html.twig index 51e5824..ccbc098 100644 --- a/Resources/views/security/denied.html.twig +++ b/Resources/views/security/denied.html.twig @@ -1,7 +1,8 @@ {% extends '@RapsysAir/body.html.twig' %} {% block content %}
-

{{ section }}

-

{% if message %}{{ message }}{% else %}{% trans %}Access denied{% endtrans %}{% endif %}

+

{{ page.title }}

+

{% if message is defined %}{{ message }}{% else %}{% trans %}Access denied{% endtrans %}{% endif %}

+ {% if is_granted('ROLE_ADMIN') %}{% if trace is defined %}
{{ trace }}
{% endif %}{% endif %}
{% endblock %} -- 2.41.1