From: hickert Date: Fri, 6 Oct 2006 06:50:39 +0000 (+0000) Subject: Set base corretly. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=655b4dbddf18fd0f6c2a6cd5be649e97b566b5b4;p=gosa.git Set base corretly. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4861 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/ogroups/class_ogroup.inc b/plugins/admin/ogroups/class_ogroup.inc index 4552807b8..45a9b06be 100644 --- a/plugins/admin/ogroups/class_ogroup.inc +++ b/plugins/admin/ogroups/class_ogroup.inc @@ -80,17 +80,19 @@ class ogroup extends plugin } } register_global("ogfilter", $ogfilter); - - if(isset($_SESSION['CurrentMainBase'])){ - $this->base = $_SESSION['CurrentMainBase']; + + /* Set base */ + if ($this->dn == "new"){ + $this->base= $_SESSION['CurrentMainBase']; + } else { + $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn); } - /* set permissions */ + /* set permissions */ $ui= get_userinfo(); $acl= get_permissions ($ui->dn, $ui->subtreeACL); $this->acl= get_module_permission($acl, "ogroup", $ui->dn); - /* Load member data */ $this->reload(); }