Fix: Conditionnement menu
This commit is contained in:
parent
5247ac10e5
commit
2c8a3ab62e
@ -434,7 +434,7 @@ class MenuLeft {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Charges tva
|
// Charges tva
|
||||||
if (($conf->compta->enabled || $conf->comptaexpert->enabled) && $conf->compta->tva && $user->societe_id == 0)
|
if ($user->rights->tax->charges->lire && $conf->compta->tva && $user->societe_id == 0)
|
||||||
{
|
{
|
||||||
$newmenu->add(DOL_URL_ROOT."/compta/tva/index.php?leftmenu=vat&mainmenu=accountancy",$langs->trans("VAT"),0,$user->rights->tax->charges->lire);
|
$newmenu->add(DOL_URL_ROOT."/compta/tva/index.php?leftmenu=vat&mainmenu=accountancy",$langs->trans("VAT"),0,$user->rights->tax->charges->lire);
|
||||||
if ($leftmenu=="vat") $newmenu->add_submenu(DOL_URL_ROOT."/compta/tva/fiche.php?action=create",$langs->trans("NewPayment"),1,$user->rights->tax->charges->creer);
|
if ($leftmenu=="vat") $newmenu->add_submenu(DOL_URL_ROOT."/compta/tva/fiche.php?action=create",$langs->trans("NewPayment"),1,$user->rights->tax->charges->creer);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user