Code comment
This commit is contained in:
parent
5a25126117
commit
1b4e572ec0
@ -58,7 +58,7 @@ $hookmanager->initHooks(array('paymentcard', 'globalcard'));
|
|||||||
// Load object
|
// Load object
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
|
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
|
// Security check
|
||||||
if ($user->socid) {
|
if ($user->socid) {
|
||||||
|
|||||||
@ -53,7 +53,7 @@ $hookmanager->initHooks(array('supplierpaymentcard', 'globalcard'));
|
|||||||
// Load object
|
// Load object
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
|
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
|
// Security check
|
||||||
if ($user->socid) {
|
if ($user->socid) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user