Add role protection

This commit is contained in:
Charles 2025-08-06 11:52:55 +02:00
parent 7021b28163
commit d543e69863
1 changed files with 2 additions and 0 deletions

View File

@ -6,7 +6,9 @@
<div class="w-100 h-100 p-5 m-auto" data-controller="organization">
<div class="d-flex justify-content-between align-items-center mb-4">
<h1>Gestion des organisations</h1>
{% if is_granted("ROLE_SUPER_ADMIN") %}
<a href="{{ path('organization_new') }}" class="btn btn-primary">Ajouter une organisation</a>
{% endif %}
</div>
{% if organizations|length == 0 %}
<tr>