Fix: Test on wrong permission

This commit is contained in:
Laurent Destailleur 2009-05-09 02:19:33 +00:00
parent 4e00428946
commit d414f694fd

View File

@ -102,7 +102,7 @@ print '<table border="0" width="100%" class="notopnoleftnoright">';
print '<tr>'; print '<tr>';
if (($conf->facture->enabled && $user->rights->facture->lire) || if (($conf->facture->enabled && $user->rights->facture->lire) ||
($conf->fournisseur->enabled && $user->rights->fournisseur->lire)) ($conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire))
{ {
print '<td valign="top" width="30%" class="notopnoleft">'; print '<td valign="top" width="30%" class="notopnoleft">';
} }
@ -214,7 +214,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire)
/** /**
* Draft suppliers invoices * 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 = "SELECT f.facnumber, f.rowid, f.total_ttc, f.type,";
$sql.= " s.nom, s.rowid as socid"; $sql.= " s.nom, s.rowid as socid";