Message editon utilisateur

This commit is contained in:
Michael RICOIS 2016-07-08 15:28:42 +02:00
parent 775954a8c0
commit 3c181592e0
2 changed files with 14 additions and 5 deletions

View File

@ -179,11 +179,19 @@ class UserController extends Zend_Controller_Action
$parameters->login = $login;
$parameters->ipUtilisateur = $adressIp;
$parameters->from = null;
$reponse = $ws->getInfosLogin($parameters);
$this->view->assign('options', $reponse->result);
$this->view->assign('loginVu', $reponse->result->login);
$this->view->assign('droits', explode(' ', strtolower($reponse->result->droits)));
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
try {
$reponse = $ws->getInfosLogin($parameters);
if ($reponse === false) {
$this->view->message = "Impossible d'afficher l'utilisateur.";
} else {
$this->view->assign('options', $reponse->result);
$this->view->assign('loginVu', $reponse->result->login);
$this->view->assign('droits', explode(' ', strtolower($reponse->result->droits)));
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
}
} catch (Exception $e) {
$this->view->message = $e->getMessage();
}
} else {
$this->view->assign('options', $identity);
$this->view->assign('loginVu', $identity->username);

View File

@ -7,6 +7,7 @@ return array(
'getEmail' => null,
'getInfosLogin' => array(
'debug' => true,
'errorMsg' => array('ERR'),
),
'getListeClients' => null,
'getListeDroits' => null,