Disable an old feature not working for everybody.

This commit is contained in:
Laurent Destailleur 2009-01-15 00:49:43 +00:00
parent d370e2ff9f
commit b137d45be3
2 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ class MenuLeft {
}
// Compta simple
if ($conf->compta->enabled)
if ($conf->compta->enabled && $conf->global->FACTURE_VENTILATION)
{
$newmenu->add(DOL_URL_ROOT."/compta/ventilation/index.php?leftmenu=ventil",$langs->trans("Dispatch"),0,$user->rights->compta->ventilation->lire);
if ($leftmenu=="ventil") $newmenu->add(DOL_URL_ROOT."/compta/ventilation/liste.php",$langs->trans("ToDispatch"),1,$user->rights->compta->ventilation->lire);

View File

@ -482,7 +482,7 @@ class MenuLeft {
// Compta simple
/*
if ($conf->compta->enabled)
if ($conf->compta->enabled && $conf->global->FACTURE_VENTILATION))
{
$newmenu->add(DOL_URL_ROOT."/compta/ventilation/index.php?leftmenu=ventil",$langs->trans("Dispatch"),0,$user->rights->compta->ventilation->lire);
if ($leftmenu=="ventil") $newmenu->add(DOL_URL_ROOT."/compta/ventilation/liste.php",$langs->trans("ToDispatch"),1,$user->rights->compta->ventilation->lire);