From 6ac5618085132ea20c834110c409b295c681f2aa Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 13 Jul 2004 16:15:51 +0000 Subject: [PATCH] Modif regle de permission pour la creation d'une societe --- htdocs/pre.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/pre.inc.php b/htdocs/pre.inc.php index 9150ada4316..2b1085e4ab8 100644 --- a/htdocs/pre.inc.php +++ b/htdocs/pre.inc.php @@ -26,6 +26,7 @@ require ("./main.inc.php"); function llxHeader($head = "") { global $user, $conf; + $user->getrights('societe'); /* * @@ -39,7 +40,7 @@ function llxHeader($head = "") { { $menu->add(DOL_URL_ROOT."/societe.php", "Sociétés","company"); - if ($user->admin) + if ($user->rights->societe->creer) { $menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create", "Nouvelle société"); }