diff --git a/htdocs/telephonie/distributeurs/fiche.php b/htdocs/telephonie/distributeurs/fiche.php index e1053d7c5f0..988293bdea4 100644 --- a/htdocs/telephonie/distributeurs/fiche.php +++ b/htdocs/telephonie/distributeurs/fiche.php @@ -44,11 +44,12 @@ if($_POST["action"] == 'add') } } -if($_POST["action"] == 'add_commercial') +if($_POST["action"] == 'add_commercial' && $user->admin) { $commercial->nom = $_POST["nom"]; $commercial->prenom = $_POST["prenom"]; $commercial->distri = $_GET["distri"]; + $commercial->email = $_POST["email"]; if ($commercial->create() <> 0) { @@ -90,12 +91,16 @@ if ($_GET["action"] == 'create_commercial') print '
| Prénom | '; - print ''; + print ' | '; print ' | '.$commercial->error_string["prenom"].' |
| Nom | '; - print ''; + print ' | '; print ' | '.$commercial->error_string["nom"].' |
| '; + print ' | '.$commercial->error_string["email"].' | ||