From d414f694fd6d2dfcc3af349e2ab8d47a0f4651ab Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 9 May 2009 02:19:33 +0000 Subject: [PATCH] Fix: Test on wrong permission --- htdocs/compta/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 814f490914a..56e186b7add 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -102,7 +102,7 @@ print ''; print ''; if (($conf->facture->enabled && $user->rights->facture->lire) || - ($conf->fournisseur->enabled && $user->rights->fournisseur->lire)) + ($conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire)) { print '
'; } @@ -214,7 +214,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire) /** * Draft suppliers invoices */ -if ($conf->facture->enabled && $user->rights->facture->lire) +if ($conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire) { $sql = "SELECT f.facnumber, f.rowid, f.total_ttc, f.type,"; $sql.= " s.nom, s.rowid as socid";