Message editon utilisateur
This commit is contained in:
parent
775954a8c0
commit
3c181592e0
@ -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);
|
||||
|
@ -7,6 +7,7 @@ return array(
|
||||
'getEmail' => null,
|
||||
'getInfosLogin' => array(
|
||||
'debug' => true,
|
||||
'errorMsg' => array('ERR'),
|
||||
),
|
||||
'getListeClients' => null,
|
||||
'getListeDroits' => null,
|
||||
|
Loading…
Reference in New Issue
Block a user