FIX avoid php warning

This commit is contained in:
Regis Houssin 2024-12-07 08:46:56 +01:00
parent 710f45bf16
commit de00de16de

View file

@ -77,7 +77,7 @@ $hookmanager->initHooks(array('groupcard', 'globalcard'));
$result = restrictedArea($user, 'user', $id, 'usergroup&usergroup', $feature2);
// Users/Groups management only in master entity if transverse mode
if (isModEnabled('multicompany') && $conf->entity > 1 && $conf->global->MULTICOMPANY_TRANSVERSE_MODE) {
if (isModEnabled('multicompany') && $conf->entity > 1 && getDolGlobalString('MULTICOMPANY_TRANSVERSE_MODE')) {
accessforbidden();
}