Code

Reverting subsearch for people. Looking for another solution...
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Mar 2007 14:06:36 +0000 (14:06 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 30 Mar 2007 14:06:36 +0000 (14:06 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5944 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupManagement.inc

index 724e946666b4c8c05896f3da6a4f9eeebe631b32..09c4bf058613b626d3bf6378f999de00e24c0497 100644 (file)
@@ -431,13 +431,8 @@ class groupManagement extends plugin
     /* Collect primary groupIDs to show primary groups 
        if this option is enabled in gosa conf && the checkbox is checked */  
     if ($this->ShowPrimaryCheckBox){
-      if ($SubSearch){
-        $res = get_list("(&(uid=$Regex)(!(uid=*$))(objectClass=posixAccount)(gidNumber=*))",
+      $res = get_list("(&(uid=$Regex)(!(uid=*$))(objectClass=posixAccount)(gidNumber=*))",
             "groups", $base,array("gidNumber", "cn"),  GL_SUBSEARCH);
-      } else {
-        $res = get_list("(&(uid=$Regex)(!(uid=*$))(objectClass=posixAccount)(gidNumber=*))",
-            "groups", $base,array("gidNumber", "cn"), GL_NONE);
-      }
       foreach ($res as $attrs){
         $primaries[$attrs['gidNumber'][0]]= $attrs['cn'][0];
       }