BugFix: Probleme d'acces a un projet pour les utilisateurs qui n'ont pas de restriction sur l'acces aux clients.

This commit is contained in:
activdev 2006-05-29 14:12:36 +00:00
parent fd3e8df610
commit f333422018

View File

@ -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";