fix travis

This commit is contained in:
hystepik 2023-01-25 16:06:41 +01:00
parent 32da192db4
commit 8c7f0e8e93

View File

@ -72,7 +72,7 @@ if ($origin == 'reception') {
} else {
if ($origin == 'supplierorder' || $origin == 'order_supplier') {
$result = restrictedArea($user, 'fournisseur', $origin_id, 'commande_fournisseur', 'commande');
} elseif (empty($user->hasRight($origin, "lire")) && empty($user->hasRight($origin, "read"))) {
} elseif (!$user->hasRight($origin, "lire") && !$user->hasRight($origin, "read")) {
accessforbidden();
}
}