Merge pull request #15276 from Hystepik/develop
FIX 14750 fix of custom contact type in project list.php
This commit is contained in:
commit
9df2f62e04
@ -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++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user