From: cajus Date: Fri, 22 Jan 2010 10:18:32 +0000 (+0000) Subject: Added %acl parameter X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=235b97baf1f682f2b8aaa0f4b826ee36e3870339;p=gosa.git Added %acl parameter git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15251 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_listing.inc b/gosa-core/include/class_listing.inc index ab6d59443..6960e4fab 100644 --- a/gosa-core/include/class_listing.inc +++ b/gosa-core/include/class_listing.inc @@ -172,7 +172,7 @@ class listing { foreach ($this->xmlData['definition']['objectType'] as $index => $otype) { $this->objectTypes[]= $this->xmlData['definition']['objectType'][$index]; if (isset($this->xmlData['definition']['objectType'][$index]['category'])){ - $this->categories[]= $this->xmlData['definition']['objectType'][$index]['category']; + $this->categories[$otype]= $this->xmlData['definition']['objectType'][$index]['category']; } } } @@ -746,6 +746,14 @@ class listing { continue; } + // Move acl information if needed + if ($param == "acl") { + $otype= $this->getObjectType($this->objectTypes, $config["objectClass"]); + $category= $this->category[$otype] + $params[]= $ui->get_category_permissions($config["dn"], $category)); + continue; + } + // Move dn if needed if ($param == "dn") { $params[]= LDAP::fix($config["dn"]);