From 8159b6bb65b9b69a7a2ef737d4fa11a5232c10f1 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Mon, 11 Apr 2011 10:59:36 +0200 Subject: ACL im RoleController --- application/modules/user/controllers/PersonController.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'application/modules/user/controllers/PersonController.php') diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php index ff5517c..9cdf258 100644 --- a/application/modules/user/controllers/PersonController.php +++ b/application/modules/user/controllers/PersonController.php @@ -276,7 +276,7 @@ class user_PersonController extends Zend_Controller_Action $this->view->userIDsNamespace = $this->userIDsNamespace; $this->view->personList = $this->personmapper->fetchAll(); - + // Search $search = $this->_request->getParam('search'); $mySearch = new Pbs_Search(); @@ -301,6 +301,9 @@ class user_PersonController extends Zend_Controller_Action } public function searchAction(){ + if(Pbs_Acl::checkRight('pso')) { + $this->_redirect('/user'); + } $this->_redirect('/user/person/showall/search/'.($_GET['search'])); } -- cgit v1.2.3-55-g7522