From a1c845a3948e6d9f3842a25252080b4f1344f409 Mon Sep 17 00:00:00 2001 From: psc Date: Wed, 24 Jun 2009 10:35:42 +0000 Subject: [PATCH] Add a configuration option allowGroupsWithSameNameInOtherSubtrees, which allows to control the object attribute allowGroupsWithSameNameInOtherSubtrees (Related to Trac #2756) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13785 594d385d-05f5-0310-b6e9-bd551577e9d8 --- trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc b/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc index 6fa967349..9740e80ec 100644 --- a/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc +++ b/trunk/gosa-core/plugins/admin/groups/class_groupGeneric.inc @@ -90,6 +90,11 @@ class group extends plugin $this->orig_dn= $dn; $this->orig_cn= $this->cn; + /* Read configuration option for $this->allowGroupsWithSameNameInOtherSubtrees */ + if ($config->get_cfg_value("allowGroupsWithSameNameInOtherSubtrees") == "false") { + $this->allowGroupsWithSameNameInOtherSubtrees = FALSE; + } + /* Get member list */ if (isset($this->attrs['memberUid'][0])){ $tmp= array(); -- 2.30.2