FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 14:42:03 +02:00
parent 679c258b3d
commit b0c3784620

View File

@ -46,7 +46,7 @@ $object->fetch($id);
$object->getrights();
// Users/Groups management only in master entity if transverse mode
if (!empty($conf->multicompany->enabled) && $conf->entity > 1 && !empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
if (isModEnabled('multicompany') && $conf->entity > 1 && !empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE)) {
accessforbidden();
}