mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix: on fait apparaitre les catgories fournisseurs si le module fournisseur est activ
This commit is contained in:
@@ -237,10 +237,13 @@ class MenuLeft {
|
||||
{
|
||||
$langs->load("categories");
|
||||
// Cat<61>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<61>gories clients
|
||||
$newmenu->add(DOL_URL_ROOT."/categories/index.php?leftmenu=cat&type=2", $langs->trans("CustomersCategoriesShort"), 0, $user->rights->categorie->lire);
|
||||
|
||||
Reference in New Issue
Block a user