From d543e69863accf9cc73fc17abd1c6cb2fba926b7 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 6 Aug 2025 11:52:55 +0200 Subject: [PATCH] Add role protection --- templates/organization/index.html.twig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/organization/index.html.twig b/templates/organization/index.html.twig index ad16986..ff665ed 100644 --- a/templates/organization/index.html.twig +++ b/templates/organization/index.html.twig @@ -6,7 +6,9 @@

Gestion des organisations

+ {% if is_granted("ROLE_SUPER_ADMIN") %} Ajouter une organisation + {% endif %}
{% if organizations|length == 0 %}