Code

Added some group acls
[gosa.git] / plugins / admin / fai / class_faiScript.inc
index b38f114ea5eb0b367bc3853fcf4000aa94ffaa8f..2610db8aeb7f11680549e9a240681fedd28c07a6 100644 (file)
@@ -315,8 +315,7 @@ class faiScript extends plugin
       $use_dn = $this->dn;
     }
   
-    $del = array();
-    $del[] = prepare_to_save_FAI_object($use_dn,array(),true);
+    prepare_to_save_FAI_object($use_dn,array(),true);
     
     foreach($this->SubObjects as $name => $obj){
       $use_dn = str_ireplace( get_release_dn($this->dn), $_SESSION['faifilter']['branch'], $obj['dn']);
@@ -428,7 +427,6 @@ class faiScript extends plugin
         }
       }
 
-
       if($obj['status'] == "delete"){
         prepare_to_save_FAI_object($sub_dn,array(),true);
         $this->handle_post_events("remove");
@@ -443,6 +441,19 @@ class faiScript extends plugin
       $this->handle_object_tagging($sub_dn, $this->gosaUnitTag);
     }
   }
+  
+  /* Return plugin informations for acl handling */ 
+  function plInfo()
+  {
+    return (array(  
+          "plDescription"     => _("FAI script"),
+          "plSelfModify"      => FALSE,
+          "plDepends"         => array("objectClass" => "FAIclass"),
+          "cn"                => _("Name"),
+          "description"       => _("Description"),
+          "FAIpriority"       => _("Script priority"),
+          "FAIscript"         => _("FAI script")));
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: