Modify rights check in the getPayments method
This commit is contained in:
parent
0a43a12420
commit
02c8f7f905
@ -680,7 +680,7 @@ class Invoices extends DolibarrApi
|
||||
*/
|
||||
function getPayments($id) {
|
||||
|
||||
if(! DolibarrApiAccess::$user->rights->facture->creer) {
|
||||
if(! DolibarrApiAccess::$user->rights->facture->lire) {
|
||||
throw new RestException(401);
|
||||
}
|
||||
if(empty($id)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user