From 5d679241afff24a8d0df8e91df8e4aebf6313a27 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Oct 2010 07:22:17 +0000 Subject: [PATCH] Updated user creation via template -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 --- gosa-core/plugins/personal/generic/class_user.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index b75e3efea..dd9c55e6b 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -796,7 +796,8 @@ class user extends plugin 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); } @@ -1489,6 +1490,7 @@ class user extends plugin /* Get base */ $this->base= preg_replace('/^[^,]+,'.preg_quote(get_people_ou(), '/').'/i', '', $dn); + $this->baseSelector->setBase($this->base); if($this->governmentmode){ -- 2.30.2