From 3e6bb21b2803c44fd2b08d75d9a341ab2169fe09 Mon Sep 17 00:00:00 2001 From: ExostFlash <120869320+ExostFlash@users.noreply.github.com> Date: Wed, 22 Nov 2023 08:40:44 +0100 Subject: [PATCH] adaptation --- templates/home/index.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/home/index.html.twig b/templates/home/index.html.twig index 2a8bd69..ea99af4 100644 --- a/templates/home/index.html.twig +++ b/templates/home/index.html.twig @@ -10,8 +10,8 @@ {% if not app.user %} compte utilisateur c'est ici {% endif %} -{% if app.user and ('waiter' in app.user.roles or 'chef' in app.user.roles) %} - User roles: {{ app.user.roles|join(', ') }} +{% if app.user and ('Waiter' in app.user.grade or 'Chef' in app.user.grade or 'Root' in app.user.grade) %} + User roles: {{ app.user.grade }} {% endif %}