summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f42f6c)
raw | patch | inline | side by side (parent: 3f42f6c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Jun 2007 07:29:58 +0000 (07:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 25 Jun 2007 07:29:58 +0000 (07:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6673 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/tabs_ogroups.inc | patch | blob | history |
index 7575a134e1b0ef18ae7aaa0b513f5a57b0c12408..57d388751af4599a2b038bcc96f56d8ad918fa51 100644 (file)
unset($this->by_object['appgroup']);
}
+ /* Add environment tab if user or group is member in this object group*/
+ if((preg_match("/G/",$objects) || preg_match("/U/",$objects)) && !isset($this->by_name['environment'])){
+ $this->by_name['environment']= _("Environment");
+ $this->by_object['environment']= new environment($this->config, $this->dn);
+ $this->by_object['environment']->acl = "#all#";
+ $this->by_object['environment']->parent= &$this;
+ }
+
+ /* Remove environment tab if not required any longer */
+ if(!preg_match("/G/",$objects) && !preg_match("/U/",$objects) && isset($this->by_name['environment'])){
+ $this->by_object['environment']->remove_from_parent();
+ unset($this->by_name['environment']);
+ unset($this->by_object['environment']);
+ }
/* Move reference tab to second position from right */
if(isset($this->by_name['acl'])){
$tmp = $this->by_name['acl'];