From a73b65d3fcc515c98bc3eb108d282d9b9ddaa162 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 3 Jan 2024 10:51:05 +0100 Subject: [PATCH] =?UTF-8?q?Ic=C3=B4ne=20RFM=20Admin=20dans=20home?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/class/layout.class.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/core/class/layout.class.php b/core/class/layout.class.php index 4c789da..ab3d8fc 100644 --- a/core/class/layout.class.php +++ b/core/class/layout.class.php @@ -510,8 +510,8 @@ class layout extends common && $this->getData(['theme', 'menu', 'memberBar']) === true ) { if ( - $this->getUser('group') >= self::GROUP_MEMBER && - $this->getUser('permission', 'filemanager') === true + ($this->getUser('group') >= self::GROUP_MEMBER && + $this->getUser('permission', 'filemanager') === true) ) { $itemsRight .= '
  • ' . template::ico('folder', [ 'href' => helper::baseUrl(false) . 'core/vendor/filemanager/dialog.php?type=0&akey=' . md5_file(self::DATA_DIR . 'core.json') . '&lang=' . $this->getData(['user', $this->getUser('id'), 'language']), @@ -1032,14 +1032,15 @@ class layout extends common // Items de droite $rightItems = ''; if ( - $this->getUser('group') >= self::GROUP_EDITOR - // ZwiiCampus ------ - && self::$siteContent !== 'home' - // ZwiiCampus ------ - && $this->getUser( - 'permission', - 'filemanager' + ( + // ZwiiCampus ------ + self::$siteContent !== 'home' + // ZwiiCampus ------ + && $this->getUser('group') >= self::GROUP_EDITOR + && $this->getUser('permission', 'filemanager') + ) + || $this->getUser('group') == self::GROUP_ADMIN ) { $rightItems .= '
  • ' . template::ico('folder', [ 'help' => 'Fichiers',