From f33342201818ba5f2d125474294b98b716fe3d83 Mon Sep 17 00:00:00 2001 From: activdev Date: Mon, 29 May 2006 14:12:36 +0000 Subject: [PATCH] BugFix: Probleme d'acces a un projet pour les utilisateurs qui n'ont pas de restriction sur l'acces aux clients. --- htdocs/projet/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index 44c64d5f8da..5ecad811215 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -48,7 +48,7 @@ if ($user->societe_id > 0) } // Protection restriction commercial -if ($projetid) +if ($projetid && !$user->rights->commercial->client->voir) { $sql = "SELECT p.rowid, p.fk_soc"; $sql.= " FROM ".MAIN_DB_PREFIX."projet as p";