update code
This commit is contained in:
parent
0632855be6
commit
f1e8ee671e
@ -550,7 +550,7 @@ class Thirdparties extends DolibarrApi
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
if (empty($conf->societe->enabled)) {
|
if (!isModEnabled('societe')) {
|
||||||
throw new RestException(501, 'Module "Thirdparties" needed for this request');
|
throw new RestException(501, 'Module "Thirdparties" needed for this request');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user