Merge pull request #15276 from Hystepik/develop

FIX 14750 fix of custom contact type in project list.php
This commit is contained in:
Laurent Destailleur 2020-11-05 09:27:51 +01:00 committed by GitHub
commit 9df2f62e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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++;