From 917bfceee6d6f8501bea08d1e0e85ed4bcf78537 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 16 Feb 2005 21:09:49 +0000 Subject: [PATCH] Fix: Oubli de test sur des permissions. --- htdocs/comm/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/index.php b/htdocs/comm/index.php index 51fbf4e17fb..a858a181f64 100644 --- a/htdocs/comm/index.php +++ b/htdocs/comm/index.php @@ -89,7 +89,7 @@ print ''; /* * Recherche Propal */ -if ($conf->propal->enabled) { +if ($conf->propal->enabled && $user->rights->propale->lire) { $var=false; print '
'; print ''; @@ -115,7 +115,7 @@ if ($conf->contrat->enabled) { /* * Liste des propal brouillons */ -if ($conf->propal->enabled) { +if ($conf->propal->enabled && $user->rights->propale->lire) { $sql = "SELECT p.rowid, p.ref, p.price, s.nom"; $sql .= " FROM ".MAIN_DB_PREFIX."propal as p, ".MAIN_DB_PREFIX."societe as s"; $sql .= " WHERE p.fk_statut = 0 and p.fk_soc = s.idp"; @@ -382,7 +382,7 @@ if ($conf->contrat->enabled && 0) // \todo A REFAIRE DEPUIS NOUVEAU CONTRAT * Dernières propales ouvertes * */ -if ($conf->propal->enabled) { +if ($conf->propal->enabled && $user->rights->propale->lire) { $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price, p.ref,".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."propal as p, ".MAIN_DB_PREFIX."c_propalst as c"; @@ -427,7 +427,7 @@ if ($conf->propal->enabled) { * */ -if ($conf->propal->enabled) { +if ($conf->propal->enabled && $user->rights->propale->lire) { $NBMAX=5; $sql = "SELECT s.nom, s.idp, p.rowid as propalid, p.price, p.ref,".$db->pdate("p.datep")." as dp, c.label as statut, c.id as statutid";