diff --git a/htdocs/compta/paiement/card.php b/htdocs/compta/paiement/card.php index 7c68a443feb..b0228e573ec 100644 --- a/htdocs/compta/paiement/card.php +++ b/htdocs/compta/paiement/card.php @@ -58,7 +58,7 @@ $hookmanager->initHooks(array('paymentcard', 'globalcard')); // Load object include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once. -$result = restrictedArea($user, $object->element, $object->id, 'paiement'); +$result = restrictedArea($user, $object->element, $object->id, 'paiement'); // This also test permission on read invoice // Security check if ($user->socid) { diff --git a/htdocs/fourn/paiement/card.php b/htdocs/fourn/paiement/card.php index a11cf769204..2ad22c03083 100644 --- a/htdocs/fourn/paiement/card.php +++ b/htdocs/fourn/paiement/card.php @@ -53,7 +53,7 @@ $hookmanager->initHooks(array('supplierpaymentcard', 'globalcard')); // Load object include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once. -$result = restrictedArea($user, $object->element, $object->id, 'paiementfourn', ''); +$result = restrictedArea($user, $object->element, $object->id, 'paiementfourn', ''); // This also test permission on read invoice // Security check if ($user->socid) {