summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e0cd615)
raw | patch | inline | side by side (parent: e0cd615)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Jun 2007 13:32:47 +0000 (13:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 21 Jun 2007 13:32:47 +0000 (13:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6658 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/tabs_ogroups.inc | patch | blob | history |
index d0659618d68230ddc83ebc75b9292e4fb2867a00..d343ddb5e1618e9604ba1cb4aaebfbc833f953f2 100644 (file)
$this->by_object['faiSummary']->parent= &$this;
}
}
+
+ /* Add application tab if user or group is member in this object group*/
+ if((preg_match("/G/",$objects) || preg_match("/U/",$objects)) && !isset($this->by_name['appgroup'])){
+ $this->by_name['appgroup']= _("Application");
+ $this->by_object['appgroup']= new appgroup($this->config, $this->dn);
+ $this->by_object['appgroup']->acl = "#all#";
+ $this->by_object['appgroup']->parent= &$this;
+ }
+
+ /* Remove application tab if not required any longer */
+ if(!preg_match("/G/",$objects) && !preg_match("/U/",$objects) && isset($this->by_name['appgroup'])){
+ $this->by_object['appgroup']->remove_from_parent();
+ unset($this->by_name['appgroup']);
+ unset($this->by_object['appgroup']);
+ }
+
/* Move reference tab to last position*/
if(isset($this->by_name['reference'])){
$tmp = $this->by_name['reference'];