Suppression permission surveillance

This commit is contained in:
Michael RICOIS 2016-09-08 10:02:22 +02:00
parent 64bbf76075
commit 5e8d809e09

View File

@ -75,7 +75,7 @@ class Legal_DirigeantController extends Zend_Controller_Action
$infos = $ws->getDirigeants($siren, true);
if ($infos === false){
$this->_forward('soap', 'error');
$this->forward('soap', 'error');
}
$dirigeants = $infos->result->item;
@ -88,9 +88,6 @@ class Legal_DirigeantController extends Zend_Controller_Action
$this->view->assign('siret', $this->siret);
$this->view->assign('raisonSociale', $session->getRaisonSociale());
$this->view->assign('infos', $infos);
$user = new Scores_Utilisateur();
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
public function opAction()
@ -105,7 +102,7 @@ class Legal_DirigeantController extends Zend_Controller_Action
'action'=>'opcontrol','mode'=>'add','siret'=>$this->siret), 'default', true),
'class' => 'dialog',
));
$this->view->headTitle()->prepend('Liste des dirigeants opérationnels');
$this->view->headTitle()->prepend('Siret '.$this->siret);
@ -113,7 +110,7 @@ class Legal_DirigeantController extends Zend_Controller_Action
$infos = $ws->getDirigeantsOp($siren);
if ($infos === false){
$this->_forward('soap', 'error');
$this->forward('soap', 'error');
}
$dirigeants = $infos->item;
@ -127,9 +124,6 @@ class Legal_DirigeantController extends Zend_Controller_Action
$this->view->assign('exportObjet', $dirigeants);
$this->view->assign('AutrePage', $this->getRequest()->getParam('apage'));
$this->view->assign('accessWorldCheck', $user->checkPerm('WORLDCHECK'));
$this->view->assign('surveillance', $user->checkPerm('survdirigeants'));
}
}