From 1aeec71761b81971f13cdfac24662fe4e16c224e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 15 Aug 2005 15:27:15 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Prot=E8ge=20menu=20expeditions=20par=20l?= =?UTF-8?q?es=20bons=20droits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/pre.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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");