Merge pull request #21605 from bb2a/FIX---php-V8-user-right-box

FIX - php V8 user right box
This commit is contained in:
Laurent Destailleur 2022-07-28 14:19:48 +02:00 committed by GitHub
commit 96afacc4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 10 deletions

View File

@ -62,7 +62,7 @@ class box_actions extends ModeleBoxes
$this->enabled = $conf->agenda->enabled;
$this->hidden = !($user->rights->agenda->myactions->read);
$this->hidden = !($user->hasRight('agenda', 'myactions', 'read'));
}
/**

View File

@ -63,7 +63,7 @@ class box_contacts extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->societe->lire && $user->rights->societe->contact->lire);
$this->hidden = !($user->hasRight('societe', 'lire') && $user->hasRight('societe', 'contact', 'lire'));
}
/**

View File

@ -59,7 +59,7 @@ class box_contracts extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->contrat->lire);
$this->hidden = !($user->hasRight('contrat', 'lire'));
}
/**

View File

@ -59,7 +59,7 @@ class box_factures_fourn extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->fournisseur->facture->lire);
$this->hidden = !($user->hasRight('fournisseur', 'facture', 'lire'));
}
/**

View File

@ -58,7 +58,7 @@ class box_factures_fourn_imp extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->fournisseur->facture->lire);
$this->hidden = !($user->hasRight('fournisseur', 'facture', 'lire'));
}
/**

View File

@ -59,7 +59,7 @@ class box_ficheinter extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->ficheinter->lire);
$this->hidden = !($user->hasRight('ficheinter', 'lire'));
}
/**

View File

@ -61,7 +61,7 @@ class box_propales extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->propale->lire);
$this->hidden = !($user->hasRight('propale', 'lire'));
}
/**

View File

@ -58,7 +58,7 @@ class box_services_expired extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->contrat->lire);
$this->hidden = !($user->hasRight('contrat', 'lire'));
}
/**

View File

@ -58,7 +58,7 @@ class box_supplier_orders extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->fournisseur->commande->lire);
$this->hidden = !($user->hasRight('fournisseur', 'commande', 'lire'));
}
/**

View File

@ -58,7 +58,7 @@ class box_supplier_orders_awaiting_reception extends ModeleBoxes
$this->db = $db;
$this->hidden = !($user->rights->fournisseur->commande->lire);
$this->hidden = !($user->hasRight('fournisseur', 'commande', 'lire'));
}
/**