From ae68713c57cdcb75211eb016f8602b9264ba041d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 23 Dec 2009 14:18:11 +0000 Subject: [PATCH] Udpated ACL listing- git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14940 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/acl/acl-filter.xml | 1 - gosa-core/plugins/admin/acl/acl-list.xml | 4 ++-- .../plugins/admin/acl/class_aclManagement.inc | 16 ++++++++-------- gosa-core/plugins/admin/acl/class_filterACL.inc | 3 ++- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gosa-core/plugins/admin/acl/acl-filter.xml b/gosa-core/plugins/admin/acl/acl-filter.xml index 0a9bd5f08..adf81e48e 100644 --- a/gosa-core/plugins/admin/acl/acl-filter.xml +++ b/gosa-core/plugins/admin/acl/acl-filter.xml @@ -34,7 +34,6 @@ (&(|(objectClass=gosaAcl)(objectClass=gosaRole))(|(ou=*$NAME*)(description=*$NAME*)(cn=*$NAME*))) ou cn - description 0.5 3 diff --git a/gosa-core/plugins/admin/acl/acl-list.xml b/gosa-core/plugins/admin/acl/acl-list.xml index 5db47fb36..ec6ed4a99 100644 --- a/gosa-core/plugins/admin/acl/acl-list.xml +++ b/gosa-core/plugins/admin/acl/acl-list.xml @@ -30,7 +30,7 @@ - |16px||150px|170px;r| + |16px|200px||170px;r| %{filter:objectType(dn,objectClass)} @@ -49,7 +49,7 @@ dn string - %{filter:filterLabel(row,dn,"%s",ou,cn,pid,base)} + %{filter:filterLabel(row,dn,ou,cn,pid,base)} true diff --git a/gosa-core/plugins/admin/acl/class_aclManagement.inc b/gosa-core/plugins/admin/acl/class_aclManagement.inc index 6329dc01b..ece0a84f8 100644 --- a/gosa-core/plugins/admin/acl/class_aclManagement.inc +++ b/gosa-core/plugins/admin/acl/class_aclManagement.inc @@ -38,7 +38,7 @@ class aclManagement extends management $this->config = $config; $this->ui = $ui; - $this->storagePoints = array(); // ACLs are attached to department containers + $this->storagePoints = array(get_ou("aclRoleRDN")); // ACLs are attached to department containers // Build filter # if (session::global_is_set(get_class($this)."_filter")){ @@ -67,16 +67,16 @@ class aclManagement extends management } // A filter which allows to open a department by clicking on the departments name. - static function filterLabel($row,$dn,$params,$ou= array(),$cn=array(),$pid=0,$base="") + static function filterLabel($row,$dn,$ou= array(),$pid=0,$base="") { - if(!isset($ou[0])){ - $ou = $cn[0]; - }else{ - $ou = $ou[0]; - } + $ou = $ou[0]; if($dn == $base){ - $ou ="."; + $ou =" . "; + } + if(!preg_match("/^cn=/",$dn)){ + $ou.="   ["._("ACL Assignment")."]"; } + $dn= LDAP::fix(func_get_arg(1)); return("$ou"); } diff --git a/gosa-core/plugins/admin/acl/class_filterACL.inc b/gosa-core/plugins/admin/acl/class_filterACL.inc index a12e22796..a9d7cb9b2 100644 --- a/gosa-core/plugins/admin/acl/class_filterACL.inc +++ b/gosa-core/plugins/admin/acl/class_filterACL.inc @@ -7,7 +7,8 @@ class filterACL { $config= session::global_get('config'); $ldap= $config->get_ldap_link(TRUE); $flag= ($scope == "sub")?GL_SUBSEARCH:0; - $result= filterACL::get_list($base, $filter, $attributes, $category, $objectStorage, $flag | GL_SIZELIMIT, "cat"); + $result= filterACL::get_list($base, $filter, $attributes, $category, array(), $flag | GL_SIZELIMIT, "cat"); + $result= array_merge($result,filterACL::get_list($base, $filter, $attributes, $category, array(), $flag | GL_SIZELIMIT, "")); $result= array_merge($result,filterACL::get_list($base, $filter, $attributes, $category, $objectStorage, $flag | GL_SIZELIMIT, "")); return(filterACL::unifyResult($result)); } -- 2.30.2