diff options
| author | michael pereira | 2011-04-04 17:12:48 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-04 17:12:48 +0200 |
| commit | 8ceb7bad18f257127ad5790a9c0ec157d7e03f4d (patch) | |
| tree | a83b3d35741914087db7eb8c169c1f5c3b0bd02a /application/modules/user/controllers/RoleController.php | |
| parent | getRessoources bei Play werden angezeigt (diff) | |
| download | pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.tar.gz pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.tar.xz pbs2-8ceb7bad18f257127ad5790a9c0ec157d7e03f4d.zip | |
WICHTIG findBy Methode geändert & alles angepasst, siehe Ticket
Diffstat (limited to 'application/modules/user/controllers/RoleController.php')
| -rw-r--r-- | application/modules/user/controllers/RoleController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/application/modules/user/controllers/RoleController.php b/application/modules/user/controllers/RoleController.php index 6246c9d..059d9c4 100644 --- a/application/modules/user/controllers/RoleController.php +++ b/application/modules/user/controllers/RoleController.php @@ -23,7 +23,7 @@ class User_RoleController extends Zend_Controller_Action public function indexAction() { if(isset($this->userIDsNamespace['groupID'])) { - $roleList = $this->roleMapper->findBy('groupID', $this->userIDsNamespace['groupID']); + $roleList = $this->roleMapper->findBy(array('groupID' => $this->userIDsNamespace['groupID']),true); $this->view->roleList = $roleList; $this->view->userIDsNamespace = $this->userIDsNamespace; } else { @@ -153,7 +153,7 @@ class User_RoleController extends Zend_Controller_Action $role = $roleMapper->find($roleID); $roleGroupID = $role->getGroupID(); if($this->userIDsNamespace['groupID'] == $roleGroupID) { - $rightroles = $this->rightRolesMapper->findBy('roleID', $roleID); + $rightroles = $this->rightRolesMapper->findBy(array('roleID' => $roleID),true); if(count($rightroles) > 0) { foreach($rightroles as $rightrole) { $right = $this->rightMapper->find($rightrole['rightID']); @@ -242,7 +242,7 @@ class User_RoleController extends Zend_Controller_Action $role = $roleMapper->find($roleID); $roleGroupID = $role->getGroupID(); if($this->userIDsNamespace['groupID'] == $roleGroupID) { - $rightroles = $this->rightRolesMapper->findBy('roleID', $roleID); + $rightroles = $this->rightRolesMapper->findBy(array('roleID' => $roleID),true); $rights = $this->rightMapper->fetchAll(); if(count($rightroles) > 0) { if(count($rights) > 0) { |
