From 1c396f1ccf1a8d5d3837cf8dc14b431fa36204fe Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 6 May 2006 12:02:19 +0000 Subject: [PATCH] bugfix --- htdocs/expedition/liste.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/expedition/liste.php b/htdocs/expedition/liste.php index d1249044265..d93739a6fed 100644 --- a/htdocs/expedition/liste.php +++ b/htdocs/expedition/liste.php @@ -62,7 +62,7 @@ if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", sc.fk_soc, $sql .= " FROM ".MAIN_DB_PREFIX."expedition as e"; if (!$user->rights->commercial->client->voir && !$socidp) $sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc, ".MAIN_DB_PREFIX."commande as c"; if ($socidp) $sql.=", ".MAIN_DB_PREFIX."commande as c"; -$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."commande as c ON c.rowid = e.fk_commande"; +if ($user->rights->commercial->client->voir && !$socidp) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."commande as c ON c.rowid = e.fk_commande"; $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON s.idp = c.fk_soc"; $sql_add = " WHERE ";