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