FIX #18767 : Adherent delete

Adherent Delete was not working due to the fact that 
$features = 'adherent';
$feature2 = 'cotisation';
And $user->rights->$feature->$subfeature->supprimer does not exist

Also I used the double declaration of salaries.
This commit is contained in:
ksar 2021-09-21 11:27:41 +02:00 committed by GitHub
parent 9b828532cc
commit f2b39b3eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,8 +513,8 @@ function restrictedArea($user, $features, $objectid = 0, $tableandshare = '', $f
if (!$user->rights->salaries->delete) {
$deleteok = 0;
}
} elseif ($feature == 'salaries') {
if (!$user->rights->salaries->delete) {
} elseif ($feature == 'adherent') {
if (!$user->rights->adherent->supprimer) {
$deleteok = 0;
}
} elseif (!empty($feature2)) { // This is for permissions on 2 levels