Le thème est réservé aux admins

This commit is contained in:
Fred Tempez 2023-11-26 14:44:28 +01:00
parent 0f715baf93
commit 702bcf173d
2 changed files with 4 additions and 2 deletions

View File

@ -911,6 +911,8 @@ class layout extends common
'href' => helper::baseUrl() . 'course',
'help' => 'Contenu'
]) . '</li>';
}
if ($this->getUser('group') >= self::GROUP_ADMIN) {
$leftItems .= '<li>' . template::ico('brush', [
'help' => 'Thème',
'href' => helper::baseUrl() . 'theme'

View File

@ -22,10 +22,10 @@ class theme extends common
'body' => self::GROUP_ADMIN,
'footer' => self::GROUP_ADMIN,
'header' => self::GROUP_ADMIN,
'index' => self::GROUP_EDITOR,
'index' => self::GROUP_ADMIN,
'menu' => self::GROUP_ADMIN,
'reset' => self::GROUP_ADMIN,
'site' => self::GROUP_EDITOR,
'site' => self::GROUP_ADMIN,
'admin' => self::GROUP_ADMIN,
'manage' => self::GROUP_ADMIN,
'export' => self::GROUP_ADMIN,