prevent access denied page

This commit is contained in:
Atm-Gregr 2022-01-24 14:50:54 +01:00
parent 909c974bad
commit 99fb082403

View File

@ -615,6 +615,9 @@ function checkUserAccessToObject($user, array $featuresarray, $objectid = 0, $ta
if ($feature == 'task') {
$feature = 'projet_task';
}
if ($feature == 'banque') {
$feature = 'fk_account@bank_account';
}
$check = array('adherent', 'banque', 'bom', 'don', 'mrp', 'user', 'usergroup', 'payment', 'payment_supplier', 'product', 'produit', 'service', 'produit|service', 'categorie', 'resource', 'expensereport', 'holiday', 'salaries', 'website'); // Test on entity only (Objects with no link to company)
$checksoc = array('societe'); // Test for societe object