From d40d049363433ec63a0af3c2bb1ae724a1a3f656 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Mar 2006 15:14:59 +0000 Subject: [PATCH] bugfix --- htdocs/contact/fiche.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 9106b5c105b..39774fcd3a8 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -239,8 +239,10 @@ if ($user->rights->societe->contact->supprimer) } } -if ($_GET["action"] == 'create') +if ($user->rights->societe->contact->creer) { + if ($_GET["action"] == 'create') + { /* * Fiche en mode creation * @@ -314,9 +316,9 @@ if ($_GET["action"] == 'create') print "
"; print ""; -} -elseif ($_GET["action"] == 'edit' && $_GET["id"]) -{ + } + elseif ($_GET["action"] == 'edit' && $_GET["id"]) + { /* * Fiche en mode edition * @@ -420,8 +422,10 @@ elseif ($_GET["action"] == 'edit' && $_GET["id"]) print ''; print ""; + } } -elseif ($_GET["id"]) + +if ($_GET["id"]) { /* * Fiche en mode visualisation