From ead7037779d5991995ce67efd112e5995aaefb0f Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 1 Feb 2010 08:49:21 +0000 Subject: [PATCH] Fixed base preselection for new systems, phones ... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/acl/class_aclRole.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc index 5b90c32a8..cc94aedb9 100644 --- a/gosa-core/plugins/admin/acl/class_aclRole.inc +++ b/gosa-core/plugins/admin/acl/class_aclRole.inc @@ -62,7 +62,8 @@ class aclrole extends acl plugin::plugin($config, $dn); if($this->dn == "new"){ - $this->base = session::get('CurrentMainBase'); + $ui = get_userinfo(); + $this->base= dn2base(session::global_is_set("CurrentMainBase")?session::global_get("CurrentMainBase"):$ui->dn); }else{ $this->base = preg_replace("/^[^,]+,[^,]+,/","",$this->dn); new log("view","acl/".get_class($this),$this->dn); -- 2.30.2