Bouton édition des langues pour les admin

This commit is contained in:
Fred Tempez 2023-09-14 21:14:43 +02:00
parent 1d083f5f19
commit 003fedcef5

View File

@ -917,11 +917,13 @@ class layout extends common
$leftItems .= '<li><select id="barSelectLanguage" >'; $leftItems .= '<li><select id="barSelectLanguage" >';
$leftItems .= $leftItem; $leftItems .= $leftItem;
$leftItems .= '</select></li>'; $leftItems .= '</select></li>';
if ($this->getUser('group') >= self::GROUP_ADMIN) {
$leftItems .= '<li>' . template::ico('flag', [ $leftItems .= '<li>' . template::ico('flag', [
'help' => 'Langues', 'help' => 'Langues',
'href' => helper::baseUrl() . 'language' 'href' => helper::baseUrl() . 'language'
]) . '</li>'; ]) . '</li>';
} }
}
// Liste des pages // Liste des pages
if ($this->getUser('group') >= self::GROUP_EDITOR) { if ($this->getUser('group') >= self::GROUP_EDITOR) {