Code

Removed samba properties
[gosa.git] / plugins / admin / fai / class_faiManagement.inc
index 098cde7ab05a8abef1ecd08b669d392d13aa4479..6480f8d5e6cbbe646d730c26093b086ef29141be 100644 (file)
@@ -198,7 +198,8 @@ class faiManagement extends plugin
                                $ldap->cat($this->dn, array('objectClass'));
                                $attrs  = $ldap->fetch();
                                $type     = $this->get_type($attrs);                    
-                               $this->dialog = new $type[0]($this->config,     $this->config->data['TABS'][$type[2]], $this->dn);
+                               $this->dialog = new $type[0]($this->config,     $this->config->data['TABS'][$type[2]], $this->dn,"fai");
+        $this->dialog->set_acl_base($this->dn);
                                $this->dialog->by_object[$type[1]]->remove_from_parent ();
                                unset ($this->dialog);
                                gosa_log ("FAI class '".$this->dn."' has been tagged as removed");
@@ -240,7 +241,8 @@ class faiManagement extends plugin
                        }
                        add_lock ($this->dn, $this->ui->dn);
 
-                       $this->dialog     = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn);
+                       $this->dialog     = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
+      $this->dialog->set_acl_base($this->dn);
                        $this->is_dialog  = true;
 
       if($entry['FAIstate'] == "freeze"){
@@ -533,8 +535,8 @@ class faiManagement extends plugin
         $a_setup= $this->get_type(array("objectClass"=>array($this->dialog->objectClass)));
         $name = $this->dialog->save();
 
-        $this->dialog = new $a_setup[0]($this->config,
-            $this->config->data['TABS'][$a_setup[2]],$this->dn,$name);
+        $this->dialog = new $a_setup[0]($this->config,$this->config->data['TABS'][$a_setup[2]],$this->dn,"fai");
+        $this->dialog->set_acl_base($_SESSION['CurrentMainBase']);
         $this->dialog->by_object[$a_setup[1]]->cn = $name;
         $this->is_dialog = true;
       }