FIX 14750 fix of custom contact type in project list

This commit is contained in:
lmarcouiller 2020-11-03 14:44:17 +01:00
parent 97c5747455
commit 2cadf87ef2

View File

@ -1252,7 +1252,7 @@ class Project extends CommonObject
$nblinks = 0;
while ($nblinks < $num)
{
if ($source == 'internal' && preg_match('/^PROJECT/', $userRole[$nblinks]['code']) && $user->id == $userRole[$nblinks]['id'])
if ($source == 'internal' && $user->id == $userRole[$nblinks]['id'])
{
if ($mode == 'read' && $user->rights->projet->lire) $userAccess++;
if ($mode == 'write' && $user->rights->projet->creer) $userAccess++;