Fix: Pb acces trop restrictif

This commit is contained in:
Laurent Destailleur 2006-06-02 23:34:28 +00:00
parent 2eaf78b89c
commit 75b5f8665e

View File

@ -47,7 +47,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."societe_commerciaux as sc, ".MAIN_DB_PREFIX."projet as p";