Code

Reverted 4745 & 4748.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 07:23:43 +0000 (07:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Sep 2006 07:23:43 +0000 (07:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4678 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupApplication.inc

index 49b44d158238bfc6061f031f3cd466fe757261c0..80839ce16b81f0a2df4529fb66be18e9966f0a56 100644 (file)
@@ -787,12 +787,11 @@ class appgroup extends plugin
   function getReleases()
   {
     $dn   = $this->config->current['BASE'];
-    $ui   = get_userinfo();
     $ldap = $this->config->get_ldap_link();
-    $returned = get_list("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",$ui->subtreeACL,$dn,array("ou"));
+    $ldap->cd($dn);
+    $ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou"));
     $ret =array();
-    
-    foreach($returned as $attrs){
+    while($attrs = $ldap->fetch()){
       if(preg_match("/ou=apps,/",$attrs['dn'])){
         $bb = preg_replace("/ou=apps,.*/","",$attrs['dn']);
         $parts = array_reverse(split("ou=",$bb));
@@ -880,7 +879,7 @@ class appgroup extends plugin
     /* Optionally execute a command after we're done */
     if ($this->initially_was_account == $this->is_account){
       if ($this->is_modified){
-        $this->handle_post_events("modify");
+        $this->handle_post_events("mofify");
       }
     } else {
       $this->handle_post_events("add");