This commit is contained in:
Faustin 2022-06-15 15:28:31 +02:00
parent 4874b8d94a
commit 6696d3d4eb

View File

@ -57,7 +57,7 @@ function contact_prepare_head(Contact $object)
$head[$tab][2] = 'perso';
$tab++;
if (!empty($conf->project->enabled) && (!empty($user->rights->projet->lire))) {
if (!empty($conf->project->enabled) && $user->hasRight('project', 'lire')) {
$nbProject = 0;
// Enable caching of thirdrparty count projects
require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';