summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 223fc97)
raw | patch | inline | side by side (parent: 223fc97)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Oct 2006 06:50:39 +0000 (06:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 6 Oct 2006 06:50:39 +0000 (06:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4861 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/ogroups/class_ogroup.inc | patch | blob | history |
index 4552807b8f4c189c3b7d10267fbcde17cbd19826..45a9b06be81afac68050a0380c3907885e109594 100644 (file)
}
}
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();
}