Code

Fixed problems with the acl removal..
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Apr 2010 13:13:30 +0000 (13:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 23 Apr 2010 13:13:30 +0000 (13:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17822 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_management.inc
gosa-core/plugins/admin/acl/class_aclManagement.inc

index 26ca752f6e32a979198baacb3da6ad4306453a44..e7f93e01a65388f4686cb4d96e3f91039cc17c52 100644 (file)
@@ -288,7 +288,7 @@ class management
 
     // Check permissons for each target 
     $h = $this->getHeadpage();
-    $oTypes = $h->objectTypes;
+    $oTypes = array_reverse($h->objectTypes);
     foreach($target as $dn){
       $entry = $h->getEntry($dn);
       $obj   = $h->getObjectType($oTypes, $entry['objectClass']);
@@ -361,7 +361,7 @@ class management
 
     // Check permissons for each target 
     $h = $this->getHeadpage();
-    $oTypes = $h->objectTypes;
+    $oTypes = array_reverse($h->objectTypes);
     foreach($this->dns as $key => $dn){
       $entry = $h->getEntry($dn);
       $obj   = $h->getObjectType($oTypes, $entry['objectClass']);
index 8a8a7756cb63ef04930871ea43da489bdf900e7f..a6eae23dc0578b9f4f1ca35fceb8b4277e758315 100644 (file)
@@ -79,15 +79,15 @@ class aclManagement extends management
 
         if($headpage->getType($dn) == "gosaRole"){
           $tabClass = "aclroletab";
-          $tabTape  = "ACLROLETAB";
+          $tabType  = "ACLROLETAB";
         }else{
           $tabClass = "acltab";
-          $tabTape  = "ACLTAB";
+          $tabType  = "ACLTAB";
         }
 
         // Delete the object
         $this->dn = $dn;
-        $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory, true, true);
+        $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, 'acl', true, true);
         $this->tabObject->set_acl_base($this->dn);
         $this->tabObject->delete ();
         $this->tabObject->parent = &$this;