Fix: Protge menu expeditions par les bons droits
This commit is contained in:
parent
200f5f9c5d
commit
1aeec71761
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user