From 92c8c0a6535a185f498063ede1e0cdcf5df6c3e8 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 5 Jul 2023 18:04:42 +0200 Subject: [PATCH] Groupe MODERATOR devient EDITOR --- core/class/layout.class.php | 14 ++++++------- core/class/router.class.php | 2 +- core/core.php | 10 +++++----- core/module/install/ressource/defaultdata.php | 4 ++-- core/module/page/page.php | 12 +++++------ core/module/user/user.php | 8 ++++---- core/module/user/view/add/add.php | 10 +++++----- core/module/user/view/edit/edit.php | 10 +++++----- .../user/view/profilEdit/profilEdit.php | 2 +- module/blog/blog.php | 20 +++++++++---------- module/blog/view/article/article.php | 2 +- module/blog/view/index/index.php | 2 +- module/form/form.php | 12 +++++------ module/gallery/gallery.php | 18 ++++++++--------- module/news/news.php | 10 +++++----- module/redirection/redirection.php | 4 ++-- module/search/search.php | 2 +- 17 files changed, 71 insertions(+), 71 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index 77256468..a2f63b9a 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -575,7 +575,7 @@ class layout extends common and $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) or ($this->getData(['page', $parentPageId, 'disable']) === true and $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - and $this->getUser('group') < self::GROUP_MODERATOR + and $this->getUser('group') < self::GROUP_EDITOR ) ) { $pageUrl = ($this->getData(['locale', 'homePageId']) === $this->getUrl(0)) ? helper::baseUrl(false) : helper::baseUrl() . $this->getUrl(0); @@ -641,7 +641,7 @@ class layout extends common and $this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD') ) or ($this->getData(['page', $childKey, 'disable']) === true and $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD') - and $this->getUser('group') < self::GROUP_MODERATOR + and $this->getUser('group') < self::GROUP_EDITOR ) ) { $pageUrl = ($this->getData(['locale', 'homePageId']) === $this->getUrl(0)) ? helper::baseUrl(false) : helper::baseUrl() . $this->getUrl(0); @@ -876,7 +876,7 @@ class layout extends common // Items de gauche $leftItems = ''; // Sélecteur de langues - if ($this->getUser('group') >= self::GROUP_MODERATOR) { + if ($this->getUser('group') >= self::GROUP_EDITOR) { $c = 0; $leftItem = ''; foreach (self::$languages as $key => $value) { @@ -893,7 +893,7 @@ class layout extends common } } // Liste des pages - if ($this->getUser('group') >= self::GROUP_MODERATOR) { + if ($this->getUser('group') >= self::GROUP_EDITOR) { $leftItems .= '