Merge pull request #23226 from fappels/17_fix_rights
Fix product stats rights->mrp->mo->read does not exist
This commit is contained in:
commit
5d60a406c8
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user