summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers/RoleController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/controllers/RoleController.php')
-rw-r--r--application/modules/user/controllers/RoleController.php6
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) {