Fix secirity access on create supplier order and invoice

This commit is contained in:
VESSILLER 2023-04-03 13:32:37 +02:00
parent 0427457ce3
commit 9eb458d1d0

View File

@ -402,7 +402,6 @@ function restrictedArea(User $user, $features, $object = 0, $tableandshare = '',
}
if ($features == 'fournisseur') { // When vendor invoice and pruchase order are into module 'fournisseur'
$features = 'fournisseur';
$feature2 = '';
if ($object->element == 'invoice_supplier') {
$feature2 = 'facture';
} elseif ($object->element == 'order_supplier') {