Ajout permission pour menu compta
This commit is contained in:
parent
4b07827826
commit
6c8abd009a
@ -140,6 +140,8 @@ class MenuTop {
|
|||||||
|
|
||||||
// Entrée compta
|
// Entrée compta
|
||||||
if ($conf->compta->enabled || $conf->banque->enabled || $conf->caisse->enabled)
|
if ($conf->compta->enabled || $conf->banque->enabled || $conf->caisse->enabled)
|
||||||
|
{
|
||||||
|
if ($user->rights->compta->general->lire)
|
||||||
{
|
{
|
||||||
$langs->load("compta");
|
$langs->load("compta");
|
||||||
|
|
||||||
@ -158,7 +160,7 @@ class MenuTop {
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '<a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Accountancy")."/".$langs->trans("Treasury").'</a>';
|
print '<a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Accountancy")."/".$langs->trans("Treasury").'</a>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée projets
|
// Entrée projets
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user