From: hickert Date: Fri, 15 Sep 2006 07:23:43 +0000 (+0000) Subject: Reverted 4745 & 4748. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=08006536ee15ccdd8c67fcca5d62e70f4aaa3176;p=gosa.git Reverted 4745 & 4748. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4678 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 49b44d158..80839ce16 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -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");