Icône RFM Admin dans home

This commit is contained in:
Fred Tempez 2024-01-03 10:51:05 +01:00
parent 37d1915007
commit a73b65d3fc

View File

@ -510,8 +510,8 @@ class layout extends common
&& $this->getData(['theme', 'menu', 'memberBar']) === true && $this->getData(['theme', 'menu', 'memberBar']) === true
) { ) {
if ( if (
$this->getUser('group') >= self::GROUP_MEMBER && ($this->getUser('group') >= self::GROUP_MEMBER &&
$this->getUser('permission', 'filemanager') === true $this->getUser('permission', 'filemanager') === true)
) { ) {
$itemsRight .= '<li>' . template::ico('folder', [ $itemsRight .= '<li>' . 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']), '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 // Items de droite
$rightItems = ''; $rightItems = '';
if ( if (
$this->getUser('group') >= self::GROUP_EDITOR (
// ZwiiCampus ------ // ZwiiCampus ------
&& self::$siteContent !== 'home' self::$siteContent !== 'home'
// ZwiiCampus ------ // ZwiiCampus ------
&& $this->getUser( && $this->getUser('group') >= self::GROUP_EDITOR
'permission', && $this->getUser('permission', 'filemanager')
'filemanager'
) )
|| $this->getUser('group') == self::GROUP_ADMIN
) { ) {
$rightItems .= '<li>' . template::ico('folder', [ $rightItems .= '<li>' . template::ico('folder', [
'help' => 'Fichiers', 'help' => 'Fichiers',