diff options
Diffstat (limited to 'application/modules/user/controllers/PersonController.php')
| -rw-r--r-- | application/modules/user/controllers/PersonController.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php index 9cdf258..ad8f596 100644 --- a/application/modules/user/controllers/PersonController.php +++ b/application/modules/user/controllers/PersonController.php @@ -46,9 +46,9 @@ class user_PersonController extends Zend_Controller_Action public function indexAction() { - if(!Pbs_Acl::checkRight('psod')) { - $this->_redirect('/user'); - } + #if(!Pbs_Acl::checkRight('psod')) { + # $this->_redirect('/user'); + #} $this->view->person = $this->person; // Pagination $pagination = new Pbs_Pagination(); @@ -60,7 +60,8 @@ class user_PersonController extends Zend_Controller_Action $this->view->groups = $pagination->getElements(); $this->view->pagination = $pagination->pagination($pageurl); $this->view->page = $pagination->getRequestPage(); - $this->view->groupRequestRight = Pbs_Acl::checkRight('grm'); + // This should be activated in case the person has no membership and no rights. + $this->view->groupRequestRight = true; $this->view->editRight = Pbs_Acl::checkRight('peoa'); $this->view->leaveRight = Pbs_Acl::checkRight('gl'); $this->view->userIDsNamespace = Zend_Session::namespaceGet('userIDs'); @@ -129,9 +130,9 @@ class user_PersonController extends Zend_Controller_Action public function requestAction() { - if(!Pbs_Acl::checkRight('grm')) { - $this->_redirect('/user'); - } + #if(!Pbs_Acl::checkRight('grm')) { + # $this->_redirect('/user'); + #} $this->view->person = $this->person; $allgroups = $this->groupMapper->fetchAll(); $groupRequests = $this->groupRequestMapper->findBy(array('personID' => $this->person->getID()),true); |
