From 5cfbe8704c9c49215737972d850199b05a1375ba Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 12 Aug 2005 13:29:43 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20des=20permissions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/telephonie/contrat/fiche.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/htdocs/telephonie/contrat/fiche.php b/htdocs/telephonie/contrat/fiche.php index bcfbb57090f..13c6a4609d1 100644 --- a/htdocs/telephonie/contrat/fiche.php +++ b/htdocs/telephonie/contrat/fiche.php @@ -963,26 +963,29 @@ print "\n
\n
\n"; if ($_GET["action"] == '') { - if ($user->rights->telephonie->ligne->creer) + if ($user->rights->telephonie->ligne->creer && $contrat->statut <> 6) { print 'Nouvelle ligne'; } - print "id\">".$langs->trans("Contact").""; + if ($user->rights->telephonie->ligne->creer && $contrat->statut <> 6) + { + print "id\">".$langs->trans("Contact").""; + } - if ($user->rights->telephonie->ligne->creer && $po == 0) + if ($user->rights->telephonie->ligne->creer && $po == 0 && $contrat->statut <> 6) { print "id\">Ajouter une prise d'ordre"; } - - print "id\">".$langs->trans("Edit").""; - - if ($user->rights->telephonie->ligne->creer && $numlignes == 0) + if ($user->rights->telephonie->ligne->creer && $contrat->statut <> 6) { - print "id\">".$langs->trans("Delete").""; + print "id\">".$langs->trans("Edit").""; } - + if ($user->rights->telephonie->ligne->creer && $numlignes == 0 && $contrat->statut <> 6) + { + print "id\">".$langs->trans("Delete").""; + } } print "
";