From 195c286a4bba2a51145be92208eef856a3506cb1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 14 Jun 2005 14:31:39 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20s=E9curit=E9=20sur=20la=20d=E9finition?= =?UTF-8?q?=20d'une=20prise=20d'ordre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/contrat/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/telephonie/contrat/fiche.php b/htdocs/telephonie/contrat/fiche.php index 8cef306a14e..455a8395966 100644 --- a/htdocs/telephonie/contrat/fiche.php +++ b/htdocs/telephonie/contrat/fiche.php @@ -912,11 +912,11 @@ else } /* - * Contact + * Prise d'ordre * * */ - if ($_GET["action"] == 'po') + if ($_GET["action"] == 'po' && $po == 0) { print_fiche_titre('Ajouter une prise d\'ordre'); @@ -969,7 +969,7 @@ if ($_GET["action"] == '') print "id\">".$langs->trans("Contact").""; - if ($user->rights->telephonie->ligne->creer) + if ($user->rights->telephonie->ligne->creer && $po == 0) { print "id\">Ajouter une prise d'ordre"; }