diff options
| author | Björn Geiger | 2011-03-29 16:37:43 +0200 |
|---|---|---|
| committer | Björn Geiger | 2011-03-29 16:37:43 +0200 |
| commit | 596f2dc724b1a576bbf4db118fc8648ca72801e2 (patch) | |
| tree | e893bb445c5e6182e7de3549855e9767df4f78b7 /application/modules/user/controllers/RoleController.php | |
| parent | RightCategories auch auf der Role Detail Seite (diff) | |
| download | pbs2-596f2dc724b1a576bbf4db118fc8648ca72801e2.tar.gz pbs2-596f2dc724b1a576bbf4db118fc8648ca72801e2.tar.xz pbs2-596f2dc724b1a576bbf4db118fc8648ca72801e2.zip | |
Add Right nur anzeigen, wenn nicht schon alle Rechte vorhanden
Diffstat (limited to 'application/modules/user/controllers/RoleController.php')
| -rw-r--r-- | application/modules/user/controllers/RoleController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application/modules/user/controllers/RoleController.php b/application/modules/user/controllers/RoleController.php index 3d8e0de..dcd00ef 100644 --- a/application/modules/user/controllers/RoleController.php +++ b/application/modules/user/controllers/RoleController.php @@ -145,6 +145,12 @@ class User_RoleController extends Zend_Controller_Action } $this->view->rightcategorieslist = $rightcategorieslist; } + $rights = $this->rightMapper->fetchAll(); + if(count($rights) == count($rightroles)) { + $this->view->rightsAvailable = false; + } else { + $this->view->rightsAvailable = true; + } $this->view->role = $this->roleMapper->find($roleID); $this->view->roleID = $roleID; $this->view->userIDsNamespace = $this->userIDsNamespace; |
