Code

Aplied changes from revision 12395.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 May 2009 09:37:36 +0000 (09:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 6 May 2009 09:37:36 +0000 (09:37 +0000)
- Changes were partly missing (class_faiManagement.inc, class_faiTemplate.inc)
- ACL related modifications. The default ACL dn to check was modified.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13612 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/fai/admin/fai/class_faiManagement.inc
trunk/gosa-plugins/fai/admin/fai/class_faiTemplate.inc

index f48108b60e760cbac34d6a1800c835be5d684451..8e64e3b2a31bdbd6fbc77f280c7773efb071a406 100644 (file)
@@ -880,7 +880,7 @@ class faiManagement extends plugin
       if(preg_match("/c/",$acl)){
         $a_setup= $this->get_type(array("objectClass"=>array("FAIprofile")));
         $this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
-        $this->dialog->set_acl_base($this->base);
+        $this->dialog->set_acl_base($this->acl_base);
         $this->dialog->parent = &$this;
 
         $this->is_dialog = false;
@@ -907,7 +907,7 @@ class faiManagement extends plugin
 
         if(class_exists($a_setup[0])){
           $this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
-          $this->dialog->set_acl_base($this->base);
+          $this->dialog->set_acl_base($this->acl_base);
           $this->dialog->by_object[$a_setup[1]]->cn = $name;
           $this->dialog->parent = &$this;
           $this->is_dialog = true;
index 1a46f050dfc4b5da18688fe81a6e710593be9ca4..5e60e4f80637dd160e17a549b9fe593fac43ad55 100644 (file)
@@ -186,7 +186,7 @@ class faiTemplate extends plugin
 
     /* Add new sub object */
     if(isset($_POST['AddSubObject']) && !preg_match("/freeze/",$this->FAIstate)){
-      $acl_dn = $this->acl_base_for_current_object($this->dn);
+      $acl_dn = "cn=dummy,".$this->acl_base_for_current_object($this->dn);
       $acl    = $this->ui->get_permissions($acl_dn,"fai/faiTemplateEntry");
 
       if(preg_match("/c/",$acl)){