From 2724f3da173d2dbef4da08443a0ce09dfd00b701 Mon Sep 17 00:00:00 2001
From: collinot4u <baptiste.collinot1@etu.univ-lorraine.fr>
Date: Sun, 7 Apr 2024 18:10:21 +0100
Subject: [PATCH] base de donnees et notifs admin

---
 templates/header.html.twig | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/templates/header.html.twig b/templates/header.html.twig
index c93c00c8..e9ac8110 100644
--- a/templates/header.html.twig
+++ b/templates/header.html.twig
@@ -10,10 +10,12 @@
         </div>
         <p>{{ app.user.login }}</p>
         
-        {% if app.user.notifs|length > 0 %}
-            <a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs_non_lues.png')}} alt="logo profil" width="35px"/></a>
-        {% else %}
-            <a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs.png')}} alt="logo profil" width="35px"/></a>
+        {% if not is_granted('ROLE_ADMIN') %}
+            {% if app.user.notifs|length > 0 %}
+                <a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs_non_lues.png')}} alt="logo profil" width="35px"/></a>
+            {% else %}
+                <a href="{{ path("app_notifications")}}"><img src={{asset('/img/notifs.png')}} alt="logo profil" width="35px"/></a>
+            {% endif %}
         {% endif %}
         <a href="{{ path("app_modif_user")}}"  ><img src={{asset('/img/bonhomme.png')}} alt="logo profil" width="50px"/></a>
         {% if not is_granted('ROLE_ADMIN') %}
-- 
GitLab