From 8ceb7bad18f257127ad5790a9c0ec157d7e03f4d Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 4 Apr 2011 17:12:48 +0200 Subject: WICHTIG findBy Methode geƤndert & alles angepasst, siehe Ticket --- application/modules/user/controllers/RoleController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'application/modules/user/controllers/RoleController.php') 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) { -- cgit v1.2.3-55-g7522