Merge pull request #21625 from ptibogxiv/patch-27

FIX validation paymentok.php if advance rights
This commit is contained in:
Laurent Destailleur 2022-08-02 19:16:58 +02:00 committed by GitHub
commit 78c5a83c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -364,13 +364,14 @@ if ($ispaymentok) {
}
if (empty($user->rights->facture)) {
$user->rights->facture = new stdClass();
$user->rights->facture->invoice_advance = new stdClass();
}
if (empty($user->rights->adherent)) {
$user->rights->adherent = new stdClass();
$user->rights->adherent->cotisation = new stdClass();
}
$user->rights->societe->creer = 1;
$user->rights->facture->creer = 1;
$user->rights->facture->invoice_advance->validate = 1;
$user->rights->adherent->cotisation->creer = 1;
if (array_key_exists('MEM', $tmptag) && $tmptag['MEM'] > 0) {