diff --git a/module/blog/blog.php b/module/blog/blog.php
index 43a0b36f..c957412f 100755
--- a/module/blog/blog.php
+++ b/module/blog/blog.php
@@ -27,15 +27,15 @@ class blog extends common
const EDIT_ALL = 'all';
public static $actions = [
- 'add' => self::GROUP_MODERATOR,
- 'comment' => self::GROUP_MODERATOR,
- 'commentApprove' => self::GROUP_MODERATOR,
- 'commentDelete' => self::GROUP_MODERATOR,
- 'commentDeleteAll' => self::GROUP_MODERATOR,
- 'config' => self::GROUP_MODERATOR,
- 'option' => self::GROUP_MODERATOR,
- 'delete' => self::GROUP_MODERATOR,
- 'edit' => self::GROUP_MODERATOR,
+ 'add' => self::GROUP_EDITOR,
+ 'comment' => self::GROUP_EDITOR,
+ 'commentApprove' => self::GROUP_EDITOR,
+ 'commentDelete' => self::GROUP_EDITOR,
+ 'commentDeleteAll' => self::GROUP_EDITOR,
+ 'config' => self::GROUP_EDITOR,
+ 'option' => self::GROUP_EDITOR,
+ 'delete' => self::GROUP_EDITOR,
+ 'edit' => self::GROUP_EDITOR,
'index' => self::GROUP_VISITOR,
'rss' => self::GROUP_VISITOR
];
@@ -697,7 +697,7 @@ class blog extends common
ksort(self::$users);
foreach (self::$users as $userId => &$userFirstname) {
// Les membres ne sont pas éditeurs, les exclure de la liste
- if ($this->getData(['user', $userId, 'group']) < self::GROUP_MODERATOR) {
+ if ($this->getData(['user', $userId, 'group']) < self::GROUP_EDITOR) {
unset(self::$users[$userId]);
}
$userFirstname = $userFirstname . ' ' . $this->getData(['user', $userId, 'lastname']) . ' (' . self::$groupEdits[$this->getData(['user', $userId, 'group'])] . ')';
diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php
index fb3f83be..48dd1df6 100755
--- a/module/blog/view/article/article.php
+++ b/module/blog/view/article/article.php
@@ -29,7 +29,7 @@
or (
// Groupe
($this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'editConsent']) === self::GROUP_ADMIN
- or $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'editConsent']) === self::GROUP_MODERATOR)
+ or $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'editConsent']) === self::GROUP_EDITOR)
and $this->getUser('group') >= $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'editConsent'])
)
or (
diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php
index afedc745..0f608e10 100755
--- a/module/blog/view/index/index.php
+++ b/module/blog/view/index/index.php
@@ -62,7 +62,7 @@
or (
// Groupe
($this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'editConsent']) === self::GROUP_ADMIN
- or $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'editConsent']) === self::GROUP_MODERATOR)
+ or $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'editConsent']) === self::GROUP_EDITOR)
and $this->getUser('group') >= $this->getData(['module', $this->getUrl(0), 'posts', $articleId, 'editConsent'])
)
or (
diff --git a/module/form/form.php b/module/form/form.php
index 6c851e55..66acf8dd 100644
--- a/module/form/form.php
+++ b/module/form/form.php
@@ -22,13 +22,13 @@ class form extends common
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
public static $actions = [
- 'config' => self::GROUP_MODERATOR,
- 'option' => self::GROUP_MODERATOR,
- 'data' => self::GROUP_MODERATOR,
- 'delete' => self::GROUP_MODERATOR,
- 'deleteall' => self::GROUP_MODERATOR,
+ 'config' => self::GROUP_EDITOR,
+ 'option' => self::GROUP_EDITOR,
+ 'data' => self::GROUP_EDITOR,
+ 'delete' => self::GROUP_EDITOR,
+ 'deleteall' => self::GROUP_EDITOR,
'index' => self::GROUP_VISITOR,
- 'export2csv' => self::GROUP_MODERATOR,
+ 'export2csv' => self::GROUP_EDITOR,
];
public static $data = [];
diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php
index ebac4dd7..8d87d5b9 100644
--- a/module/gallery/gallery.php
+++ b/module/gallery/gallery.php
@@ -44,15 +44,15 @@ class gallery extends common
public static $config = [];
public static $actions = [
- 'config' => self::GROUP_MODERATOR,
- 'delete' => self::GROUP_MODERATOR,
- 'dirs' => self::GROUP_MODERATOR,
- 'sortGalleries' => self::GROUP_MODERATOR,
- 'sortPictures' => self::GROUP_MODERATOR,
- 'edit' => self::GROUP_MODERATOR,
- 'add' => self::GROUP_MODERATOR,
- 'theme' => self::GROUP_MODERATOR,
- 'option' => self::GROUP_MODERATOR,
+ 'config' => self::GROUP_EDITOR,
+ 'delete' => self::GROUP_EDITOR,
+ 'dirs' => self::GROUP_EDITOR,
+ 'sortGalleries' => self::GROUP_EDITOR,
+ 'sortPictures' => self::GROUP_EDITOR,
+ 'edit' => self::GROUP_EDITOR,
+ 'add' => self::GROUP_EDITOR,
+ 'theme' => self::GROUP_EDITOR,
+ 'option' => self::GROUP_EDITOR,
'index' => self::GROUP_VISITOR
];
diff --git a/module/news/news.php b/module/news/news.php
index b131cf74..bf2ef0ec 100644
--- a/module/news/news.php
+++ b/module/news/news.php
@@ -21,13 +21,13 @@ class news extends common
const DATADIRECTORY = self::DATA_DIR . 'news/';
public static $actions = [
- 'add' => self::GROUP_MODERATOR,
- 'config' => self::GROUP_MODERATOR,
+ 'add' => self::GROUP_EDITOR,
+ 'config' => self::GROUP_EDITOR,
// Edition des news
- 'option' => self::GROUP_MODERATOR,
+ 'option' => self::GROUP_EDITOR,
// paramétrage des news
- 'delete' => self::GROUP_MODERATOR,
- 'edit' => self::GROUP_MODERATOR,
+ 'delete' => self::GROUP_EDITOR,
+ 'edit' => self::GROUP_EDITOR,
'index' => self::GROUP_VISITOR,
'rss' => self::GROUP_VISITOR
];
diff --git a/module/redirection/redirection.php b/module/redirection/redirection.php
index c974fdc3..1f3fdf05 100644
--- a/module/redirection/redirection.php
+++ b/module/redirection/redirection.php
@@ -21,7 +21,7 @@ class redirection extends common
const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json)
public static $actions = [
- 'config' => self::GROUP_MODERATOR,
+ 'config' => self::GROUP_EDITOR,
'index' => self::GROUP_VISITOR
];
@@ -60,7 +60,7 @@ class redirection extends common
if (
$this->getUser('permission', __CLASS__, __FUNCTION__) !== true
&& $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
- && $this->getUser('group') >= self::GROUP_MODERATOR
+ && $this->getUser('group') >= self::GROUP_EDITOR
&& $this->getUrl(1) !== 'force'
) {
// Valeurs en sortie
diff --git a/module/search/search.php b/module/search/search.php
index d19a11ca..12a38747 100644
--- a/module/search/search.php
+++ b/module/search/search.php
@@ -26,7 +26,7 @@ class search extends common
public static $actions = [
'index' => self::GROUP_VISITOR,
- 'config' => self::GROUP_MODERATOR
+ 'config' => self::GROUP_EDITOR
];
// Variables pour l'affichage des résultats