Fixing style errors.
This commit is contained in:
parent
609a29219d
commit
b9cc780c3c
@ -997,7 +997,7 @@ class Invoices extends DolibarrApi
|
|||||||
public function markAsCreditAvailable($id)
|
public function markAsCreditAvailable($id)
|
||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/discount.class.php';
|
||||||
|
|
||||||
if (!DolibarrApiAccess::$user->rights->facture->creer) {
|
if (!DolibarrApiAccess::$user->rights->facture->creer) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user