From 958d1885bbaa0aaf8068f74bbb735d878cfaa5ad Mon Sep 17 00:00:00 2001
From: Jean-Philippe Metivier <jean-philippe.metivier@unicaen.fr>
Date: Mon, 19 Dec 2022 08:58:11 +0100
Subject: [PATCH] =?UTF-8?q?Remise=20en=20ordre=20des=20privil=C3=A8ges=20a?=
 =?UTF-8?q?ssoci=C3=A9s=20aux=20indicateurs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 config/merged/indicateur.config.php | 22 +++++++++++++++++++---
 1 file changed, 19 insertions(+), 3 deletions(-)

diff --git a/config/merged/indicateur.config.php b/config/merged/indicateur.config.php
index 25f06bf..8085e26 100644
--- a/config/merged/indicateur.config.php
+++ b/config/merged/indicateur.config.php
@@ -22,11 +22,18 @@ return [
                     'controller' => IndicateurController::class,
                     'action' => [
                         'index',
-                        'afficher',
-                        'rafraichir',
                         'creer',
                         'modifier',
-                        'detruire',
+                    ],
+                    'privileges' => [
+                        IndicateurPrivileges::EDITER,
+                    ],
+                ],
+                [
+                    'controller' => IndicateurController::class,
+                    'action' => [
+                        'afficher',
+                        'rafraichir',
                         'exporter',
                         'regenerer',
                     ],
@@ -34,6 +41,15 @@ return [
                         IndicateurPrivileges::AFFICHER,
                     ],
                 ],
+                [
+                    'controller' => IndicateurController::class,
+                    'action' => [
+                        'detruire',
+                    ],
+                    'privileges' => [
+                        IndicateurPrivileges::DETRUIRE,
+                    ],
+                ],
                 [
                     'controller' => IndicateurController::class,
                     'action' => [
-- 
GitLab