From: hickert Date: Thu, 14 Sep 2006 08:18:53 +0000 (+0000) Subject: Fixes useing old session, problem when not logged out correctly X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2706e5a3dbe999b326f3976d66120a17d4471950;p=gosa.git Fixes useing old session, problem when not logged out correctly git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4652 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupApplication.inc b/plugins/admin/groups/class_groupApplication.inc index 80839ce16..26af428f4 100644 --- a/plugins/admin/groups/class_groupApplication.inc +++ b/plugins/admin/groups/class_groupApplication.inc @@ -790,8 +790,12 @@ class appgroup extends plugin $ldap = $this->config->get_ldap_link(); $ldap->cd($dn); $ldap->search("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",array("ou")); + + $ui = get_userinfo(); + $returned = get_list("(&(objectClass=organizationalUnit)(objectClass=FAIbranch))",$ui->subtreeACL,$dn,array("ou")); $ret =array(); - while($attrs = $ldap->fetch()){ + + foreach($returned as $attrs){ if(preg_match("/ou=apps,/",$attrs['dn'])){ $bb = preg_replace("/ou=apps,.*/","",$attrs['dn']); $parts = array_reverse(split("ou=",$bb));