From 3ad6f2639d6630a8f9c9db12d84aa523372022cf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 13 Mar 2010 21:53:45 +0000 Subject: [PATCH] Move permission "see hidden categories" into "see hidden products/services". --- htdocs/product/stats/index.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/product/stats/index.php b/htdocs/product/stats/index.php index ae4b6ad9a69..b630d0a8257 100644 --- a/htdocs/product/stats/index.php +++ b/htdocs/product/stats/index.php @@ -57,8 +57,8 @@ $db->free(); $sql = "SELECT count(*)"; $sql.= " FROM ".MAIN_DB_PREFIX."product as p"; $sql.= " WHERE p.envente = 0"; -if (!$user->rights->produit->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 0)'; -if (!$user->rights->service->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 1)'; +if (!$user->rights->produit->voir) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 0)'; +if (!$user->rights->service->voir) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 1)'; $sql.= " AND p.fk_product_type <> '1'"; $sql.= " AND p.entity = ".$conf->entity; @@ -117,8 +117,8 @@ if ($conf->service->enabled) $sql = "SELECT count(*)"; $sql.= " FROM ".MAIN_DB_PREFIX."product as p"; $sql.= " WHERE p.envente = 0"; - if (!$user->rights->produit->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 0)'; - if (!$user->rights->service->hidden) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 1)'; + if (!$user->rights->produit->voir) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 0)'; + if (!$user->rights->service->voir) $sql.=' AND (p.hidden=0 OR p.fk_product_type != 1)'; $sql.= " AND p.fk_product_type = '1'"; $sql.= " AND p.entity = ".$conf->entity;