Code

Added %acl parameter
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 10:18:32 +0000 (10:18 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Jan 2010 10:18:32 +0000 (10:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15251 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index ab6d5944354bdf8f56ebf12bbe5a68886a6d80a5..6960e4fab749a2fc6daf2cd36b42ac2bfd6649f8 100644 (file)
@@ -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"]);