From: hickert Date: Mon, 11 Oct 2010 09:47:02 +0000 (+0000) Subject: Implemented groupware tab in dynamic tab handling of ogroups X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4ee7fa219cb6835178e52c2f4d36a01f8cb50c6e;p=gosa.git Implemented groupware tab in dynamic tab handling of ogroups git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19969 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc index a1c51dae4..1631afe0c 100644 --- a/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc +++ b/gosa-core/plugins/admin/ogroups/tabs_ogroups.inc @@ -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")){