2
0
forked from Wavyzz/dolibarr

Fix #yogosha5832 - Missin test on permission for /index routes on APIs

This commit is contained in:
Laurent Destailleur
2021-04-08 19:05:28 +02:00
parent 6c84b858ee
commit 667481acd5
18 changed files with 81 additions and 0 deletions

View File

@@ -158,6 +158,10 @@ class Orders extends DolibarrApi
{
global $db, $conf;
if (!DolibarrApiAccess::$user->rights->commande->lire) {
throw new RestException(401);
}
$obj_ret = array();
// case of external user, $thirdparty_ids param is ignored and replaced by user's socid