Fix API right check
This commit is contained in:
parent
cc1a3080d0
commit
7be0e0da1c
@ -1048,7 +1048,7 @@ class Thirdparties extends DolibarrApi
|
|||||||
{
|
{
|
||||||
global $db, $conf;
|
global $db, $conf;
|
||||||
|
|
||||||
if (!DolibarrApiAccess::$user->rights->facture->lire) {
|
if (!DolibarrApiAccess::$user->rights->societe->lire) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
}
|
}
|
||||||
if (empty($id)) {
|
if (empty($id)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user