Code

Hide tabs frames
[gosa.git] / plugins / admin / ogroups / class_termgroup.inc
index eb0db5799733d951059a01721163ba1c3e258283..61e5c21764bd5baec5bdf639a313ceaa931bbb8f 100644 (file)
@@ -21,12 +21,13 @@ class termgroup extends plugin
 
   var $mapActions   = array("reboot"          => "localboot",
                             "instant_update"  => "softupdate",
-                            "update"          => "sceduledupdate",
+                            "update"          => "scheduledupdate",
                             "reinstall"       => "install",
                             "rescan"          => "",
                             "memcheck"        => "memcheck",
                             "sysinfo"         => "sysinfo");
 
+  var $CopyPasteVars = array("gotoNtpServers","modes","inheritTimeServer");
 
   function termgroup ($config, $dn= NULL, $parent= NULL)
   {
@@ -141,8 +142,8 @@ class termgroup extends plugin
   function update_term_member_FAIstate($act)
   {
     /* Get required informations */
-    $og    = $this->parent->by_object['ogroup'];
-    $allobs= $og->allobjects;
+    $og    = $this->parent->by_object['ogroup'];  
+    $allobs= $og->objcache;
 
     /* Get correct value for FAIstate */
     $action= $this->mapActions[$act];
@@ -201,7 +202,7 @@ class termgroup extends plugin
         $names.= "$cn ";
       }
 
-      if (isset($_POST['action'])){
+      if (isset($_POST['action']) && $this->acl == "#all#"){
 
         /* Update members fai state */
         $this->update_term_member_FAIstate(trim($_POST['saction']));
@@ -226,12 +227,12 @@ class termgroup extends plugin
      ***************/
 
     /* Add new ntp Server to our list */
-    if((isset($_POST['addNtpServer'])) && (isset($_POST['gotoNtpServers']))){
+    if((isset($_POST['addNtpServer'])) && (isset($_POST['gotoNtpServers'])) && $this->acl == "#all#"){
       $this->gotoNtpServer[$_POST['gotoNtpServers']] = $_POST['gotoNtpServers'];
     }
 
     /* Delete selected NtpServer for list of used servers  */
-    if((isset($_POST['delNtpServer'])) && (isset($_POST['gotoNtpServerSelected']))){
+    if((isset($_POST['delNtpServer'])) && (isset($_POST['gotoNtpServerSelected'])) && $this->acl == "#all#"){
       foreach($_POST['gotoNtpServerSelected'] as $name){
         unset($this->gotoNtpServer[$name]);
       }