FIX - php V8 user right box

This commit is contained in:
Anthony Berton 2022-07-28 12:09:22 +02:00
parent 4cd85f3029
commit c1b98e8e73
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'));
}
/**