diff --git a/htdocs/pre.inc.php b/htdocs/pre.inc.php index 423407f1621..82b57de02c7 100644 --- a/htdocs/pre.inc.php +++ b/htdocs/pre.inc.php @@ -124,12 +124,14 @@ function llxHeader($head = "") { { $langs->load("orders"); $menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders")); - if ($conf->expedition->enabled) - { - $menu->add_submenu(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings")); - } } + if ($conf->expedition->enabled && $user->rights->expedition->lire) + { + $langs->load("sendings"); + $menu->add(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings")); + } + if ($user->rights->mailing->lire) { $langs->trans("mails");