From 82c11dc30a91f9fc5c48286e05470b9c043dffb5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 14 Apr 2006 09:58:28 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20droits=20non=20d=E9finis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/projet/fiche.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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 "
";