Skip to content

Commit

Permalink
fix code indent
Browse files Browse the repository at this point in the history
  • Loading branch information
Rusu-Marian-Dan committed Feb 11, 2019
1 parent 9ce4b91 commit 57e2971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/facture/class/api_invoices.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ function makecreditnote($id)
throw new RestException(404, 'Invoice not found');
}

if( ! DolibarrApi::_checkAccessToResource('facture',$this->invoice->id)) {
if( ! DolibarrApi::_checkAccessToResource('facture', $this->invoice->id)) {
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}

Expand Down Expand Up @@ -944,7 +944,7 @@ function makecreditnote($id)
throw new RestException(404, 'Invoice not found');
}

if( ! DolibarrApi::_checkAccessToResource('facture',$this->invoice->id)) {
if( ! DolibarrApi::_checkAccessToResource('facture', $this->invoice->id)) {
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}

Expand Down

0 comments on commit 57e2971

Please sign in to comment.