Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
This commit is contained in:
commit
2065dee731
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class Warehouses extends DolibarrApi
|
|||
throw new RestException(404, 'warehouse not found');
|
||||
}
|
||||
|
||||
if (!DolibarrApi::_checkAccessToResource('warehouse', $this->warehouse->id)) {
|
||||
if (!DolibarrApi::_checkAccessToResource('stock', $this->warehouse->id, 'entrepot')) {
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue