N°7039 - Fix incorrect retrieval of SecurityHelper due to previous merge

This commit is contained in:
Molkobain
2023-12-07 12:38:16 +01:00
parent 8cc1970931
commit 90d28c1f90

View File

@@ -1404,7 +1404,7 @@ class ObjectFormManager extends FormManager
}
}
/** @var SecurityHelper $oSecurityHelper */
$oSecurityHelper = $this->oContainer->get('security_helper');
$oSecurityHelper = $this->oFormHandlerHelper->GetSecurityHelper();
// N°7023 - Note that we check for ext. key now as we want the check to be done on user inputs and NOT on ext. keys set programatically, so it must be done before the DoComputeValues
$this->oObject->CheckChangedExtKeysValues(function ($sClass, $sId) use ($oSecurityHelper): bool {
return $oSecurityHelper->IsActionAllowed(UR_ACTION_READ, $sClass, $sId);