Update api_thirdparties.class.php
This commit is contained in:
parent
9eaad23564
commit
809d98129f
@ -488,6 +488,7 @@ $reshook = $hookmanager->executeHooks('replaceThirdparty', array(
|
|||||||
if( ! DolibarrApi::_checkAccessToResource('societe', $this->company->id)) {
|
if( ! DolibarrApi::_checkAccessToResource('societe', $this->company->id)) {
|
||||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||||
}
|
}
|
||||||
|
$this->company->oldcopy = $this->company;
|
||||||
return $this->company->delete($id);
|
return $this->company->delete($id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user