From 6c2c13a9fc1785fb765e19a70c2b7827c2080a4c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 3 Apr 2005 15:42:33 +0000 Subject: [PATCH] Ajout permissions sur les commandes --- 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 76a8cfbec1d..746a277f568 100644 --- a/htdocs/pre.inc.php +++ b/htdocs/pre.inc.php @@ -31,6 +31,7 @@ function llxHeader($head = "") { $user->getrights('societe'); $user->getrights('propale'); $user->getrights('facture'); + $user->getrights('commande'); top_menu($head); @@ -110,13 +111,14 @@ function llxHeader($head = "") { $menu->add(DOL_URL_ROOT."/adherents/index.php", $langs->trans("Members")); } - if ($conf->commande->enabled) + if ($conf->commande->enabled && $user->rights->commande->lire) { $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) + { + $menu->add_submenu(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings")); + } } $langs->trans("mails");