diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php
index d5c310e6542..56ccaf6f095 100644
--- a/htdocs/comm/fiche.php
+++ b/htdocs/comm/fiche.php
@@ -27,6 +27,7 @@ require("../actioncomm.class.php");
llxHeader();
$user->getrights('propale');
+$user->getrights('commande');
$user->getrights('projet');
if ($sortorder == "") {
@@ -266,16 +267,24 @@ if ($socid > 0) {
*
*/
print '
| - | '; + if (defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer) { - print "idp&action=create\">Créer une proposition | "; + print "idp&action=create\">Créer une proposition | "; } else { print '- | '; } print '- | '; + if (defined("MAIN_MODULE_COMMANDE") && MAIN_MODULE_COMMANDE && $user->rights->commande->creer) + { + print 'Créer une commande | '; + } + else + { + print '- | '; + } print 'Créer un projet | '; print '- | ';