diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 451946fea99..9c9532ababe 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -97,7 +97,7 @@ print "
"; /* * Factures brouillons */ -if ($conf->facture->enabled) +if ($conf->facture->enabled && $user->rights->facture->lire) { $sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp"; @@ -294,7 +294,7 @@ if ($conf->commande->enabled && $user->rights->commande->lire) } -if ($conf->facture->enabled) +if ($conf->facture->enabled && $user->rights->facture->lire) { /*