Merge pull request #23226 from fappels/17_fix_rights

Fix product stats rights->mrp->mo->read does not exist
This commit is contained in:
Laurent Destailleur 2022-12-14 17:58:56 +01:00 committed by GitHub
commit 5d60a406c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,16 +440,16 @@ if ($result || !($id > 0)) {
continue;
}
if ($graphfiles == 'propal' && !$user->rights->propal->lire) {
if ($graphfiles == 'propal' && empty($user->rights->propal->lire)) {
continue;
}
if ($graphfiles == 'order' && !$user->rights->commande->lire) {
if ($graphfiles == 'order' && empty($user->rights->commande->lire)) {
continue;
}
if ($graphfiles == 'invoices' && !$user->rights->facture->lire) {
if ($graphfiles == 'invoices' && empty($user->rights->facture->lire)) {
continue;
}
if ($graphfiles == 'proposals_suppliers' && !$user->rights->supplier_proposal->lire) {
if ($graphfiles == 'proposals_suppliers' && empty($user->rights->supplier_proposal->lire)) {
continue;
}
if ($graphfiles == 'invoices_suppliers' && empty($user->rights->fournisseur->facture->lire)) {
@ -458,7 +458,7 @@ if ($result || !($id > 0)) {
if ($graphfiles == 'orders_suppliers' && empty($user->rights->fournisseur->commande->lire)) {
continue;
}
if ($graphfiles == 'mrp' && empty($user->rights->mrp->mo->read)) {
if ($graphfiles == 'mrp' && empty($user->rights->mrp->read)) {
continue;
}