bugfix
This commit is contained in:
parent
2fd9c1d33d
commit
4d7feeb311
@ -72,14 +72,14 @@ class box_services_vendus extends ModeleBoxes {
|
||||
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
||||
{
|
||||
$sql .= ", ".MAIN_DB_PREFIX."categorie_product as cp";
|
||||
$sql .= ", ".MAIN_DB_PREFIX."categorie as c";
|
||||
$sql .= ", ".MAIN_DB_PREFIX."categorie as ca";
|
||||
}
|
||||
$sql .= " WHERE s.idp = c.fk_soc AND c.rowid = cd.fk_contrat AND cd.fk_product = p.rowid";
|
||||
if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= " AND s.idp = sc.fk_soc AND sc.fk_user = " .$user->id;
|
||||
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
||||
{
|
||||
$sql .= " AND cp.fk_product = p.rowid";
|
||||
$sql .= " AND cp.fk_categorie = c.rowid AND c.visible = 1";
|
||||
$sql .= " AND cp.fk_categorie = ca.rowid AND ca.visible = 1";
|
||||
}
|
||||
if($user->societe_id)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user