Code

Udpated fai acls
[gosa.git] / plugins / admin / fai / class_faiScript.inc
index b38f114ea5eb0b367bc3853fcf4000aa94ffaa8f..360ed01f34aa72a5395f431baf87f3cfa38fff23 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,26 @@ class faiScript extends plugin
       $this->handle_object_tagging($sub_dn, $this->gosaUnitTag);
     }
   }
+  
+
+  /* Return plugin informations for acl handling */ 
+  function plInfo()
+  {
+    return (array( 
+          "plShortName" => _("Script"),
+          "plDescription" => _("FAI script"),
+          "plSelfModify"  => FALSE,
+          "plDepends"     => array(),
+          "plPriority"    => 0,
+          "plSection"     => array("administration"),
+          "plCategory"    => array("fai"),
+          "plProvidedAcls" => array(
+            "cn"                => _("Name"),
+            "description"       => _("Description"),
+            "FAIpriority"       => _("Script priority"),
+            "FAIscript"         => _("FAI script"))
+          ));
+  }
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: