Code

Added acls to mimetype
[gosa.git] / plugins / admin / groups / tabs_group.inc
index 9205244d5c80af7909f92b587851d65dbe62cb9b..7ae739b5c934c2e6b0248ad35324a438533c730a 100644 (file)
@@ -3,9 +3,18 @@
 class grouptabs extends tabs
 {
 
-       function grouptabs($config, $data, $dn)
+       function grouptabs($config, $data, $dn,$acl_category)
        {
-               tabs::tabs($config, $data, $dn);
+               tabs::tabs($config, $data, $dn,$acl_category);
+               $baseobject= $this->by_object['group'];
+               foreach ($this->by_object as $name => $obj){
+                       if(isset($obj->parent)){
+                               $this->by_object[$name]->parent  = $this;
+                       }
+               }
+
+               /* Add references/acls/snapshots */
+               $this->addSpecialTabs();
        }
 
        function save_object($save_current= FALSE)
@@ -59,9 +68,31 @@ class grouptabs extends tabs
                        $this->dn= $new_dn;
                }
 
-               return tabs::save();
+               $ret= tabs::save();
+
+               /* Fix tagging if needed */
+               $baseobject->dn= $new_dn;
+               $baseobject->handle_object_tagging();
+
+               return $ret;
        }
 
+       function saveCopyDialog()
+       {
+               tabs::saveCopyDialog();
+               
+        /* Update reference, transfer variables */
+        $baseobject= $this->by_object['group'];
+        foreach ($this->by_object as $name => $obj){
+            /* Don't touch base object */
+            if ($name != 'group'){
+                $obj->parent= &$this;
+                $obj->cn= $baseobject->cn;
+                $this->by_object[$name]= $obj;
+            }
+        }
+       }
+       
 }
 
 ?>