FIX restrictedArea for payment delete
This commit is contained in:
parent
7cd09eb649
commit
406089ef0c
@ -493,7 +493,11 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
|
|||||||
if (!$user->rights->fournisseur->facture->creer) {
|
if (!$user->rights->fournisseur->facture->creer) {
|
||||||
$deleteok = 0;
|
$deleteok = 0;
|
||||||
}
|
}
|
||||||
} elseif ($feature == 'banque') {
|
} elseif ($feature == 'payment') {
|
||||||
|
if (!$user->rights->facture->supprimer) {
|
||||||
|
$deleteok = 0;
|
||||||
|
}
|
||||||
|
}elseif ($feature == 'banque') {
|
||||||
if (!$user->rights->banque->modifier) {
|
if (!$user->rights->banque->modifier) {
|
||||||
$deleteok = 0;
|
$deleteok = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user