Skip to content
Snippets Groups Projects
Commit 1aeec717 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Protège menu expeditions par les bons droits

parent 200f5f9c
No related branches found
No related tags found
No related merge requests found
......@@ -124,11 +124,13 @@ function llxHeader($head = "") {
{
$langs->load("orders");
$menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders"));
if ($conf->expedition->enabled)
}
if ($conf->expedition->enabled && $user->rights->expedition->lire)
{
$menu->add_submenu(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings"));
$langs->load("sendings");
$menu->add(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings"));
}
}
if ($user->rights->mailing->lire)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment