#21750 NEW: Added "Get lines from BOM" at the REST Service

This commit is contained in:
Christian Humpel 2022-08-14 15:58:49 +02:00
parent 32fe761f01
commit a204165018

View File

@ -300,7 +300,7 @@ class Boms extends DolibarrApi
throw new RestException(404, 'BOM not found');
}
if (!DolibarrApi::_checkAccessToResource('bom_bom', $this->commande->id)) {
if (!DolibarrApi::_checkAccessToResource('bom_bom', $this->bom->id)) {
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}
$this->bom->getLinesArray();