Modify rights check in the getPayments method

This commit is contained in:
Neil Orley 2017-10-24 11:25:31 +02:00
parent 0a43a12420
commit 02c8f7f905

View File

@ -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)) {