mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
fix warnings
This commit is contained in:
@@ -299,7 +299,7 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
||||
$nbko++;
|
||||
}
|
||||
} elseif ($feature == 'cheque') {
|
||||
if (!$user->rights->banque->cheque) {
|
||||
if (empty($user->rights->banque->cheque)) {
|
||||
$readok = 0;
|
||||
$nbko++;
|
||||
}
|
||||
@@ -385,22 +385,22 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
||||
$nbko++;
|
||||
}
|
||||
} elseif ($feature == 'commande_fournisseur') {
|
||||
if (!$user->rights->fournisseur->commande->creer || !$user->rights->supplier_order->creer) {
|
||||
if (empty($user->rights->fournisseur->commande->creer) || empty($user->rights->supplier_order->creer)) {
|
||||
$createok = 0;
|
||||
$nbko++;
|
||||
}
|
||||
} elseif ($feature == 'banque') {
|
||||
if (!$user->rights->banque->modifier) {
|
||||
if (empty($user->rights->banque->modifier)) {
|
||||
$createok = 0;
|
||||
$nbko++;
|
||||
}
|
||||
} elseif ($feature == 'cheque') {
|
||||
if (!$user->rights->banque->cheque) {
|
||||
if (empty($user->rights->banque->cheque)) {
|
||||
$createok = 0;
|
||||
$nbko++;
|
||||
}
|
||||
} elseif ($feature == 'import') {
|
||||
if (!$user->rights->import->run) {
|
||||
if (empty($user->rights->import->run)) {
|
||||
$createok = 0;
|
||||
$nbko++;
|
||||
}
|
||||
@@ -497,11 +497,11 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
||||
$deleteok = 0;
|
||||
}
|
||||
} elseif ($feature == 'banque') {
|
||||
if (!$user->rights->banque->modifier) {
|
||||
if (empty($user->rights->banque->modifier)) {
|
||||
$deleteok = 0;
|
||||
}
|
||||
} elseif ($feature == 'cheque') {
|
||||
if (!$user->rights->banque->cheque) {
|
||||
if (empty($user->rights->banque->cheque)) {
|
||||
$deleteok = 0;
|
||||
}
|
||||
} elseif ($feature == 'ecm') {
|
||||
|
||||
Reference in New Issue
Block a user