From 840a3d24da11391c44aa4420869d2ebbd398da32 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 19 Dec 2006 19:35:50 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix:=20message=20d'erreur=20si=20l'utilisate?= =?UTF-8?q?ur=20n'avait=20pas=20le=20droit=20de=20voir=20les=20cat=E9gorie?= =?UTF-8?q?s=20cach=E9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/product/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/index.php b/htdocs/product/index.php index 1930ca712ba..28f75180098 100644 --- a/htdocs/product/index.php +++ b/htdocs/product/index.php @@ -106,10 +106,10 @@ if ($conf->categorie->enabled && !$user->rights->categorie->voir) { $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_product as cp ON cp.fk_product = p.rowid"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cp.fk_categorie = c.rowid"; - $sql.= " WHERE IFNULL(c.visible,1)=1 "; } $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product_subproduct as sp ON p.rowid = sp.fk_product_subproduct"; $sql.= " WHERE sp.fk_product_subproduct IS NULL"; +if ($conf->categorie->enabled && !$user->rights->categorie->voir) $sql.= " AND IFNULL(c.visible,1)=1 "; $sql.= " ORDER BY p.datec DESC "; $sql.= $db->plimit($max,0); $result = $db->query($sql) ;