Code

Implemented groupware tab in dynamic tab handling of ogroups
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Oct 2010 09:47:02 +0000 (09:47 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Oct 2010 09:47:02 +0000 (09:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19969 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/ogroups/tabs_ogroups.inc

index a1c51dae4b1c8958ccc1118f67c68ca9e661af0e..1631afe0cdad7cf0053a6e4020f6ab475c8ac499 100644 (file)
@@ -82,6 +82,11 @@ class ogrouptabs extends tabs
                 $this->remove('mailogroup');
             }
         }
+        if(class_available("DistributionList")){
+            if(!preg_match("/U/",$objects) && isset($this->by_object['DistributionList'])){
+                $this->remove('DistributionList');
+            }
+        }
 
         /* Remove terminal group, if theres no terminal left in the object list 
          */
@@ -154,6 +159,14 @@ class ogrouptabs extends tabs
                 }
             }
         }
+        if(class_available("DistributionList")){
+            if((preg_match("/U/",$objects))&&(!isset($this->by_object['DistributionList']))){
+                $this->by_name['DistributionList']= _("Groupware");
+                $this->by_object['DistributionList']= new DistributionList($this->config, $this->dn);
+                $this->by_object['DistributionList']->parent= &$this;
+                $this->add('DistributionList');
+            }
+        }
 
         /* Add Terminal tab */
         if(class_available("termgroup")){