From 6523860988bb8cc9d4bb5d6588a703e77224727a Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 3 Aug 2006 11:19:25 +0000 Subject: [PATCH] Updated list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4378 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 10 +++++----- plugins/admin/users/class_userManagement.inc | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index 5f1d386f7..6dad0634d 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -582,7 +582,7 @@ function get_lock ($object) } -function get_list($filter, $object, $base= "", $attributes= array(), $flags= GL_SUBSEARCH) +function get_list($filter, $category, $base= "", $attributes= array(), $flags= GL_SUBSEARCH) { global $config, $ui; @@ -616,9 +616,9 @@ function get_list($filter, $object, $base= "", $attributes= array(), $flags= GL_ $dn= $ldap->getDN(); /* Sort in every value that fits the permissions */ - if (is_array($object)){ - foreach ($object as $o){ - if ($ui->get_permissions($dn, $o, "") != ""){ + if (is_array($category)){ + foreach ($category as $o){ + if ($ui->get_category_permissions($dn, $o) != ""){ if ($flags & GL_CONVERT){ $attrs["dn"]= convert_department_dn($dn); } else { @@ -630,7 +630,7 @@ function get_list($filter, $object, $base= "", $attributes= array(), $flags= GL_ } } } else { - if ($ui->get_permissions($dn, $object, "") != ""){ + if ($ui->get_category_permissions($dn, $category) != ""){ if ($flags & GL_CONVERT){ $attrs["dn"]= convert_department_dn($dn); } else { diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 8e7f6415f..0c2e864a5 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -717,11 +717,11 @@ class userManagement extends plugin $ldap= $this->config->get_ldap_link(TRUE); if ($SubSearch){ - $ListTemp = get_list($filter, "users", $base, + $ListTemp = get_list($filter, "user", $base, array("uid", "givenName", "sn", "objectClass"), GL_SUBSEARCH | GL_SIZELIMIT); } else { $base= get_people_ou().$base; - $ListTemp = get_list($filter, "users", $base, + $ListTemp = get_list($filter, "user", $base, array("uid", "givenName", "sn", "objectClass"), GL_SIZELIMIT); } $SortTemp = array(); -- 2.30.2