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:
parent
fd3e8df610
commit
f333422018
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user