From 8b1964d897e46d0a9490e40e973a332b078ce146 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 7 Jul 2005 09:05:07 +0000 Subject: [PATCH] Correction permission de creer une facture fournisseur --- htdocs/fourn/facture/pre.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/pre.inc.php b/htdocs/fourn/facture/pre.inc.php index 96c0a1c3733..534597bc0b9 100644 --- a/htdocs/fourn/facture/pre.inc.php +++ b/htdocs/fourn/facture/pre.inc.php @@ -70,7 +70,8 @@ function llxHeader($head = "", $title = "", $addons='') { $langs->load("bills"); $menu->add(DOL_URL_ROOT."/fourn/facture/index.php", $langs->trans("Bills")); - if ($user->societe_id == 0) + + if ($user->rights->fournisseur->facture->creer) { $menu->add_submenu(DOL_URL_ROOT."/fourn/facture/fiche.php?action=create",$langs->trans("NewBill")); }