mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-16 06:21:28 +01:00
Ajout permissions sur les commandes
This commit is contained in:
@@ -31,6 +31,7 @@ function llxHeader($head = "") {
|
|||||||
$user->getrights('societe');
|
$user->getrights('societe');
|
||||||
$user->getrights('propale');
|
$user->getrights('propale');
|
||||||
$user->getrights('facture');
|
$user->getrights('facture');
|
||||||
|
$user->getrights('commande');
|
||||||
|
|
||||||
top_menu($head);
|
top_menu($head);
|
||||||
|
|
||||||
@@ -110,13 +111,14 @@ function llxHeader($head = "") {
|
|||||||
$menu->add(DOL_URL_ROOT."/adherents/index.php", $langs->trans("Members"));
|
$menu->add(DOL_URL_ROOT."/adherents/index.php", $langs->trans("Members"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->commande->enabled)
|
if ($conf->commande->enabled && $user->rights->commande->lire)
|
||||||
{
|
{
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
$menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders"));
|
$menu->add(DOL_URL_ROOT."/commande/index.php", $langs->trans("Orders"));
|
||||||
if ($conf->expedition->enabled) {
|
if ($conf->expedition->enabled)
|
||||||
$menu->add_submenu(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings"));
|
{
|
||||||
}
|
$menu->add_submenu(DOL_URL_ROOT."/expedition/index.php", $langs->trans("Sendings"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$langs->trans("mails");
|
$langs->trans("mails");
|
||||||
|
|||||||
Reference in New Issue
Block a user