mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: on fait apparaitre les catgories fournisseurs si le module fournisseur est activ
This commit is contained in:
parent
7ce2bb0d48
commit
2df60c38c9
|
|
@ -237,10 +237,13 @@ class MenuLeft {
|
|||
{
|
||||
$langs->load("categories");
|
||||
// Catégories fournisseurs
|
||||
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0, $user->rights->categorie->lire);
|
||||
if ($user->societe_id == 0)
|
||||
if ($conf->fournisseur->enabled
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create&type=1", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
|
||||
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=1", $langs->trans("SuppliersCategoriesShort"), 0, $user->rights->categorie->lire);
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
$newmenu->add_submenu(DOL_URL_ROOT."/categories/fiche.php?action=create&type=1", $langs->trans("NewCat"), 1, $user->rights->categorie->creer);
|
||||
}
|
||||
}
|
||||
// Catégories clients
|
||||
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=2", $langs->trans("CustomersCategoriesShort"), 0, $user->rights->categorie->lire);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user