From 8c104f92f502b482c57b25c36c75fc4c9128b32c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 23 Mar 2005 13:58:45 +0000 Subject: [PATCH] Gestion permission de la ventilation --- htdocs/compta/export/pre.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/export/pre.inc.php b/htdocs/compta/export/pre.inc.php index ae0a4086e2b..a8cb6986aa6 100644 --- a/htdocs/compta/export/pre.inc.php +++ b/htdocs/compta/export/pre.inc.php @@ -44,8 +44,11 @@ function llxHeader($head = "", $title="", $help_url='') $menu->add(DOL_URL_ROOT."/compta/clients.php", $langs->trans("Customers")); - $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); - + if (!$user->rights->compta->ventilation->creer) + { + $menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation")); + } + $menu->add(DOL_URL_ROOT."/compta/facture.php",$langs->trans("Bills")); $menu->add(DOL_URL_ROOT."/compta/export/",$langs->trans("Export"));