From e6391279fed06ddb1252d1ff443f330c87d5673b Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 28 Jul 2025 11:45:59 +0200 Subject: [PATCH] refactor --- templates/user/show.html.twig | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/user/show.html.twig b/templates/user/show.html.twig index b5dc8bc..9fa02f2 100644 --- a/templates/user/show.html.twig +++ b/templates/user/show.html.twig @@ -3,10 +3,12 @@ {% block body %}
-
-

Gestion Utilisateur

- Désactiver -
+ {% if is_granted("ROLE_ADMIN") %} +
+

Gestion Utilisateur

+ Désactiver +
+ {% endif %} {% include 'user/userInformation.html.twig' %}

Organisations