Code

Add a configuration option allowGroupsWithSameNameInOtherSubtrees,
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Jun 2009 10:35:42 +0000 (10:35 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Jun 2009 10:35:42 +0000 (10:35 +0000)
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

index 6fa9673495657074bd54577c0403134c09cbe563..9740e80ec12c682eb8194464a3d623bbe704cfa3 100644 (file)
@@ -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();