Fix #yogosha5832

This commit is contained in:
Laurent Destailleur 2021-04-08 18:51:42 +02:00
parent dfdae71e42
commit 6c84b858ee
2 changed files with 8 additions and 0 deletions

View File

@ -99,6 +99,10 @@ class Boms extends DolibarrApi
{
global $db, $conf;
if (!DolibarrApiAccess::$user->rights->bom->read) {
throw new RestException(401);
}
$obj_ret = array();
$tmpobject = new BOM($this->db);

View File

@ -98,6 +98,10 @@ class Mos extends DolibarrApi
{
global $db, $conf;
if (!DolibarrApiAccess::$user->rights->mrp->read) {
throw new RestException(401);
}
$obj_ret = array();
$tmpobject = new Mo($this->db);