From 7fced7fe574d0d481d0e407130a17e9994ea95fd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 13 Mar 2006 15:39:50 +0000 Subject: [PATCH] fix: mauvais droit --- htdocs/soc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/soc.php b/htdocs/soc.php index e4d5fc9f865..1889284cc61 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -114,7 +114,7 @@ if ($_POST["action"] == 'add' || $_POST["action"] == 'update') $soc->typent_id = $_POST["typent_id"]; $soc->client = $_POST["client"]; $soc->fournisseur = $_POST["fournisseur"]; - $soc->tva_assuj = $_POST["assujtva_value"]; + $soc->tva_assuj = $_POST["assujtva_value"]; if ($_POST["action"] == 'add') { @@ -151,7 +151,7 @@ if ($_POST["action"] == 'add' || $_POST["action"] == 'update') } -if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user->rights->societe->creer) +if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == 'yes' && $user->rights->societe->supprimer) { $soc = new Societe($db); $soc->fetch($socid); @@ -216,7 +216,7 @@ if ($_GET["action"] == 'create' || $_POST["action"] == 'create') $soc->effectif_id=$_POST["effectif_id"]; $soc->tva_intra_code=$_POST["tva_intra_code"]; $soc->tva_intra_num=$_POST["tva_intra_num"]; - $soc->tva_assuj = $_POST["assujtva_value"]; + $soc->tva_assuj = $_POST["assujtva_value"]; } // On positionne pays_id, pays_code et libelle du pays choisi