strtolower sur les droits
This commit is contained in:
parent
14648d0e3d
commit
e521f43c62
@ -164,7 +164,7 @@ class UserController extends Zend_Controller_Action
|
||||
$reponse = $ws->getListeClients($idClient);
|
||||
$InfosClient = $reponse->result->item[0];
|
||||
$this->view->assign('loginNew', $InfosClient->racineLogin);
|
||||
$this->view->assign('droitsClients', explode(' ', $InfosClient->droits));
|
||||
$this->view->assign('droitsClients', explode(' ', strtolower($InfosClient->droits)));
|
||||
$this->view->assign('action', 'new');
|
||||
$this->view->assign('pref', array());
|
||||
}elseif (!empty($action) || $action!='new') {
|
||||
@ -173,12 +173,12 @@ class UserController extends Zend_Controller_Action
|
||||
$reponse = $ws->getInfosLogin($login);
|
||||
$this->view->assign('options', $reponse->result);
|
||||
$this->view->assign('loginVu', $reponse->result->login);
|
||||
$this->view->assign('droits', explode(' ', $reponse->result->droits));
|
||||
$this->view->assign('droits', explode(' ', strtolower($reponse->result->droits)));
|
||||
$this->view->assign('droitsClients', explode(' ', $reponse->result->droitsClients));
|
||||
} else {
|
||||
$this->view->assign('options', $identity);
|
||||
$this->view->assign('loginVu', $identity->username);
|
||||
$this->view->assign('droits', explode(' ', $identity->droits));
|
||||
$this->view->assign('droits', explode(' ', strtolower($identity->droits)));
|
||||
$this->view->assign('droitsClients', explode(' ', $identity->droitsClients));
|
||||
}
|
||||
$this->view->assign('loginNew', '');
|
||||
@ -187,7 +187,7 @@ class UserController extends Zend_Controller_Action
|
||||
} else {
|
||||
$reponse = $ws->getNextLogin($identity->username);
|
||||
$this->view->assign('loginNew', $reponse->result->racine);
|
||||
$this->view->assign('droitsClients', explode(' ', $reponse->result->droitsClients));
|
||||
$this->view->assign('droitsClients', explode(' ', strtolower($reponse->result->droitsClients)));
|
||||
$this->view->assign('action', 'new');
|
||||
$this->view->assign('pref', array());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user