From e6f75275f2e17b1169e09789965965cc2d4f8f92 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 14 Oct 2020 10:29:44 +0200 Subject: [PATCH] =?UTF-8?q?Limite=20au=20groupe=20=C3=A9diteur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/blog/view/article/article.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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) {