Code

Updated repository service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Aug 2008 12:02:26 +0000 (12:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Aug 2008 12:02:26 +0000 (12:02 +0000)
-Fixed ACLs

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12188 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/systems/services/repository/class_servRepository.inc
gosa-plugins/fai/admin/systems/services/repository/class_servRepositorySetup.inc

index 349f28ef38ad32772f10583374c7161a6616979e..597ce6ae117522c5f3c078d3d33fad58910bc169 100644 (file)
@@ -353,11 +353,11 @@ class servrepository extends goService
 #            "stop"          => _("Service stop"),   // Remove this to hide the stop button at all.
 #            "restart"       => _("Service restart"),// Remove this to hide the restart button at all.
 
-            "cn"            => _("Name"),
-            "Release"       => _("Releases"),
-            "Section"       => _("Sections"),
+#            "cn"            => _("Name"),
             "ParentServer"  => _("Parent server"),
-            "Url"           => _("Url"))
+            "Release"       => _("Releases"),
+            "Url"           => _("Url"),
+            "Section"       => _("Sections"))
           ));
   }
 }
index 0c4bbd1c99b58cb3b810f988fffb5679a744c56b..e2e9a4d8a0af1ac7d73c3d753c64a675cc5fed9c 100644 (file)
@@ -95,7 +95,12 @@ class servRepositorySetup  extends plugin
 
     $divlist = new divSelectBox("servRepositorySetup");
     $divlist->setHeight("220");
-    $dellink = "<input type='image' src='images/lists/trash.png' title='delete' alt='delete' name='delete_%s' value='%s'>";
+    if(preg_match("/w/",$this->parent->getacl("Section"))){
+      $dellink = "<input type='image' src='images/lists/trash.png' title='delete' alt='delete' name='delete_%s' value='%s'>";
+    }else{
+      $dellink = "";
+    }
+  
     foreach($this->Sections as $sec){
       $divlist->AddEntry(array(
             array("string"=>$sec),