summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/PersonController.php
diff options
context:
space:
mode:
authorSimon2011-04-11 12:19:28 +0200
committerSimon2011-04-11 12:19:28 +0200
commit4ab3be484d93b93f17b30753b69a53b691b2a4fb (patch)
tree9cb334ec2610f703d5530f5dc74e7352f210c29e /application/modules/user/controllers/PersonController.php
parentkleine anpassungen (diff)
downloadpbs2-4ab3be484d93b93f17b30753b69a53b691b2a4fb.tar.gz
pbs2-4ab3be484d93b93f17b30753b69a53b691b2a4fb.tar.xz
pbs2-4ab3be484d93b93f17b30753b69a53b691b2a4fb.zip
Recht um als neu registrierter Benutzer Gruppen beizutreten
Diffstat (limited to 'application/modules/user/controllers/PersonController.php')
-rw-r--r--application/modules/user/controllers/PersonController.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php
index ff5517c..41f7122 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);