Merge pull request #16289 from bafbes/abb120359
fix:Handle constant MAIN_SHOW_SOCIETE2EXTERN in checkUserAccessToObject
This commit is contained in:
commit
7a844f6936
@ -709,7 +709,7 @@ function checkUserAccessToObject($user, $featuresarray, $objectid = 0, $tableand
|
||||
}
|
||||
} elseif (!in_array($feature, $nocheck)) { // By default (case of $checkdefault), we check on object entity + link to third party on field $dbt_keyfield
|
||||
// If external user: Check permission for external users
|
||||
if ($user->socid > 0) {
|
||||
if ($user->socid > 0 && empty($conf->global->MAIN_EXTERNAL_USERS_CAN_SEE_SUBSIDIARY_COMPANIES)) {
|
||||
if (empty($dbt_keyfield)) {
|
||||
dol_print_error('', 'Param dbt_keyfield is required but not defined');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user