This commit is contained in:
Laurent Destailleur 2022-06-14 17:56:53 +02:00
parent dd392143e1
commit ff26031dc6
2 changed files with 3 additions and 3 deletions

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

View File

@ -121,7 +121,7 @@ class BuildDocTest extends PHPUnit\Framework\TestCase
if (! $conf->propal->enabled) {
print __METHOD__." propal module not enabled\n"; die(1);
}
if (! $conf->projet->enabled) {
if (! $conf->project->enabled) {
print __METHOD__." project module not enabled\n"; die(1);
}
if (! $conf->expedition->enabled) {
@ -377,7 +377,7 @@ class BuildDocTest extends PHPUnit\Framework\TestCase
$user=$this->savuser;
$langs=$this->savlangs;
$db=$this->savdb;
$conf->projet->dir_output.='/temp';
$conf->project->dir_output.='/temp';
$localobject=new Project($this->savdb);
$localobject->initAsSpecimen();