Correction permission de creer une facture fournisseur

This commit is contained in:
Rodolphe Quiedeville 2005-07-07 09:05:07 +00:00
parent 1415df0e46
commit 8b1964d897

View File

@ -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"));
}