diff --git a/module/blog/blog.php b/module/blog/blog.php index 9987f67a..8d286c06 100644 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -309,8 +309,8 @@ class blog extends common { ( $this->getData(['module', $this->getUrl(0), $value,'editConsent']) === self::EDIT_OWNER AND $this->getData(['module', $this->getUrl(0), $value,'userId']) === $this->getUser('id') - ) // Ou une autorité - OR $this->getUser('group') > $this->getData(['module',$this->getUrl(0), $value,'editConsent']) + AND $this->getUser('group') >= self::GROUP_EDITOR + ) ) OR ( // Groupe diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index a80fa63d..6c966a4c 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -27,7 +27,6 @@ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], 'value' => 'Editer' ]); ?> -