diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index 878e9760e21..61d1f4d4cb9 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -239,17 +239,18 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) * Boutons actions */ print '
'; - - if ($user->rights->projet->creer == 1) - { - - if ($_GET["action"] != "edit") + + if ($_GET["action"] != "edit") { - print ''.$langs->trans("Edit").''; - print ''.$langs->trans("Delete").''; - } - + if ($user->rights->projet->creer) + { + print ''.$langs->trans("Edit").''; } + if ($user->rights->projet->supprimer) + { + print ''.$langs->trans("Delete").''; + } + } print "
";