summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
index abdac71..9f930fd 100644
--- a/public/index.php
+++ b/public/index.php
@@ -60,6 +60,12 @@ elseif(isset($_GET['action']) && $_GET['action'] === 'modif_mdp')
60{ 60{
61 changePassword($entityManager); 61 changePassword($entityManager);
62} 62}
63elseif($_SESSION['admin'] && isset($_GET['page']) && isset($_GET['action']) && $_GET['action'] === 'modif_page'
64 && $_GET['page'] !== 'connexion' && $_GET['page'] !== 'article' && $_GET['page'] !== 'menu_chemins')
65{
66 // les contrôles de la 2è ligne devraient utiliser un tableau
67 MainBuilder::$modif_mode = true;
68}
63 69
64// -- contrôleurs -- 70// -- contrôleurs --
65$director = new Director($entityManager, true); 71$director = new Director($entityManager, true);