From: hickert Date: Tue, 18 Sep 2007 07:04:15 +0000 (+0000) Subject: Updated menu creation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8348ad067e6347c1ee444157305114322e0dd7c;p=gosa.git Updated menu creation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }