diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index e72f759a..a80fa63d 100644 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -7,28 +7,29 @@ à getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn'])); ?> - + getUser('password') === $this->getInput('ZWII_USER_PASSWORD') AND ( // Propriétaire ( $this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) === $module::EDIT_OWNER AND $this->getData(['module', $this->getUrl(0), $this->getUrl(1),'userId']) === $this->getUser('id') - ) // Ou une autorité - OR $this->getUser('group') > $this->getData(['module',$this->getUrl(0), $value,'editConsent']) - ) OR ( + AND $this->getUser('group') >= self::GROUP_EDITOR + ) + ) OR ( // Groupe $this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) !== $module::EDIT_OWNER AND $this->getUser('group') >= $this->getData(['module',$this->getUrl(0), $this->getUrl(1),'editConsent']) ) ): ?> -
helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'], 'value' => 'Editer' ]); ?> -
- + + + getData(['module', $this->getUrl(0), $this->getUrl(1), 'pictureSize']) === null ? '100' : $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'pictureSize']); ?> getData(['module', $this->getUrl(0), $this->getUrl(1), 'hidePicture']) == false) {