summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1dab897)
raw | patch | inline | side by side (parent: 1dab897)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Oct 2010 07:22:17 +0000 (07:22 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 8 Oct 2010 07:22:17 +0000 (07:22 +0000) |
-Use tempate-base as intial user-base
-Allow to switch base if we've create permissions on a given folder.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19946 594d385d-05f5-0310-b6e9-bd551577e9d8
-Allow to switch base if we've create permissions on a given folder.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@19946 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/personal/generic/class_user.inc | patch | blob | history |
diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc
index b75e3efeac7a55cf630ca6df50840e79790a0c38..dd9c55e6b20a2f98cc97fa9510010c241cfddb93 100644 (file)
plugin::save_object ();
/* Refresh base */
- if ($this->acl_is_moveable($this->base)){
+ if ($this->acl_is_moveable($this->base) ||
+ ($this->dn == "new" && $this->acl_is_createable($this->base))){
if (!$this->baseSelector->update()) {
msg_dialog::display(_("Error"), msgPool::permMove(), ERROR_DIALOG);
}
/* Get base */
$this->base= preg_replace('/^[^,]+,'.preg_quote(get_people_ou(), '/').'/i', '', $dn);
+ $this->baseSelector->setBase($this->base);
if($this->governmentmode){