From b376fda6c6fdf36c72807402531c7bd32159e31a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 7 Mar 2006 15:39:34 +0000 Subject: [PATCH] Fix: droit invalide --- htdocs/comm/clients.php | 2 +- htdocs/includes/modules/modCommercial.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/comm/clients.php b/htdocs/comm/clients.php index 1676c842925..e7a8b6c5c29 100644 --- a/htdocs/comm/clients.php +++ b/htdocs/comm/clients.php @@ -59,7 +59,7 @@ $sql .= " WHERE s.fk_stcomm = st.id AND s.client=1"; if ($socidp) $sql .= " AND s.idp = $socidp"; if ($user->societe_id) $sql .= " AND s.idp = " .$user->societe_id; -if (!$user->rights->commercial->voir) $sql .= " AND s.idp = sc.fk_soc AND sc.fk_user = " .$user->id; +if (!$user->rights->commercial->client->voir) $sql .= " AND s.idp = sc.fk_soc AND sc.fk_user = " .$user->id; if ($search_nom) $sql .= " AND s.nom like '%".addslashes(strtolower($search_nom))."%'"; if ($search_ville) $sql .= " AND s.ville like '%".addslashes(strtolower($search_ville))."%'"; diff --git a/htdocs/includes/modules/modCommercial.class.php b/htdocs/includes/modules/modCommercial.class.php index 559cde1695f..3027604c7c5 100644 --- a/htdocs/includes/modules/modCommercial.class.php +++ b/htdocs/includes/modules/modCommercial.class.php @@ -98,7 +98,7 @@ class modCommercial extends DolibarrModules $this->rights[$r][1] = 'Consulter tous les clients'; $this->rights[$r][2] = 'r'; $this->rights[$r][3] = 0; - $this->rights[$r][4] = 'main'; + $this->rights[$r][4] = 'client'; $this->rights[$r][5] = 'voir'; $r++; }