Update api_thirdparties.class.php

This commit is contained in:
Frédéric FRANCE 2019-10-13 06:14:45 +02:00 committed by GitHub
parent 9eaad23564
commit 809d98129f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
} }