Code

Updated FAI entry listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 09:44:02 +0000 (09:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 30 Mar 2010 09:44:02 +0000 (09:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17386 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiScript.inc

index e29091b92866e03354e2a5501708decc0537f2cf..a20ca37efffdf92a2d890baaca00b3803477b720 100644 (file)
@@ -77,13 +77,14 @@ class faiScript extends plugin
     $this->scriptListWidget->setInstantDelete(false);
     $this->scriptListWidget->setEditable(true);
     $this->scriptListWidget->setWidth("100%");
-    $this->scriptListWidget->setHeight("70px");
+    $this->scriptListWidget->setHeight("140px");
     $this->scriptListWidget->setHeader(array(_("Name"),_("Description")));
   }
 
   function convertList($type = FALSE)
   {
     $data = array();
+    $s_acl = $this->ui->get_permissions($this->dn,"fai/faiScriptEntry","FAIscript");
     foreach($this->SubObjects as $cn => $entry){
       if($entry['status'] == "delete") continue;
       if($type){
@@ -169,18 +170,6 @@ class faiScript extends plugin
       set_object_info($this->dn);
     }
 
-    /* Handle posts */
-    $s_action = $s_entry = "";
-    foreach($_POST as $name => $value){
-      if(preg_match("/^download_/",$name)){
-        $s_entry = postDecode(preg_replace("/^download_/","",$name));
-        $obj = $this->SubObjects[$s_entry];
-        $obj  = $this->get_object_attributes($obj,$this->sub_Load_Later);
-        send_binary_content(stripslashes($obj['FAIscript']),$obj['cn'].".FAIscript"); 
-        break;
-      }
-    }
-
     $this->scriptListWidget->setAcl($this->getacl(""));
     $this->scriptListWidget->save_object();
     $action = $this->scriptListWidget->getAction();