From 596f2dc724b1a576bbf4db118fc8648ca72801e2 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Tue, 29 Mar 2011 16:37:43 +0200 Subject: Add Right nur anzeigen, wenn nicht schon alle Rechte vorhanden --- application/modules/user/controllers/RoleController.php | 6 ++++++ 1 file changed, 6 insertions(+) (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 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; -- cgit v1.2.3-55-g7522