From 18abf04b19eecac3f9962162ea0967a4aa2af568 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 24 Jan 2004 20:23:14 +0000 Subject: [PATCH] =?UTF-8?q?N'affiche=20pas=20les=20lients=20projets=20et?= =?UTF-8?q?=20commande=20si=20les=20modules=20respectifs=20sont=20d=E9sact?= =?UTF-8?q?iv=E9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/fiche.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index f73d7795c08..458396862c9 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -148,16 +148,16 @@ if ($socid > 0) { print "idp\">Compta"; - print "idp\">Documents"; - print "idp&action=add_bookmark\">[Bookmark]"; - if ($user->rights->projet->creer) - print "idp&action=create\">[Projet]"; + print "[idp\">Documents]"; + print "[idp&action=add_bookmark\">Bookmark]"; + if ($conf->projet->enabled && $user->rights->projet->creer) + print "[idp&action=create\">Projet]"; if (defined("MAIN_MODULE_FICHEINTER") && MAIN_MODULE_FICHEINTER) { - print "idp&action=create\">[Intervention]"; + print "[idp&action=create\">Intervention]"; } - print "idp\">Notes"; + print "[idp\">Notes]"; print "[idp&action=edit\">Editer]"; } print ""; @@ -313,7 +313,7 @@ if ($socid > 0) */ print '
'; - if (defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer) + if ($conf->propal->enabled && defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer) { print ""; } @@ -322,7 +322,7 @@ if ($socid > 0) print ''; } print ''; - if (defined("MAIN_MODULE_COMMANDE") && MAIN_MODULE_COMMANDE && $user->rights->commande->creer) + if ($conf->commande->enabled && defined("MAIN_MODULE_COMMANDE") && MAIN_MODULE_COMMANDE && $user->rights->commande->creer) { print ''; } @@ -330,7 +330,7 @@ if ($socid > 0) { print ''; } - if ($user->rights->projet->creer) + if ($conf->projet->enabled && $user->rights->projet->creer) { print ''; }
idp&action=create\">Créer une proposition--Créer une commande-Créer un projet