From e8348ad067e6347c1ee444157305114322e0dd7c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Sep 2007 07:04:15 +0000 Subject: [PATCH] Updated menu creation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_pluglist.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index fd6fac154..1327a6350 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -79,7 +79,6 @@ class pluglist { function check_access($aclname) { - $acl = ""; $deps = $this->ui->get_module_departments($aclname); $acls_to_check = array(); @@ -92,19 +91,20 @@ class pluglist { if(preg_match("/\//",$aclname)){ foreach($deps as $dep){ foreach($acls_to_check as $acl_to_check){ - $acl.=$this->ui->get_permissions($dep,$acl_to_check); + if($this->ui->get_permissions($dep,$acl_to_check) != ""){ + return(TRUE); + } } } }else{ foreach($deps as $dep){ foreach($acls_to_check as $acl_to_check){ - $acl.=$this->ui->get_category_permissions($dep,$acl_to_check); + if($this->ui->get_category_permissions($dep,$acl_to_check) != ""){ + return(TRUE); + } } } } - if($acl != ""){ - return (TRUE); - } return (FALSE); } -- 2.30.2