From 9ef43517e55788a8f386d707dbedb6ffa523be6e Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Jul 2006 11:59:07 +0000 Subject: [PATCH] Fixed goShare git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4208 594d385d-05f5-0310-b6e9-bd551577e9d8 --- Changelog | 1 + include/class_config.inc | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Changelog b/Changelog index 8c176e4d3..ad157e458 100644 --- a/Changelog +++ b/Changelog @@ -2,6 +2,7 @@ GOsa2 changelog =============== * gosa 2.5.3 + - Fixed environment shares, only available shares will be displayed (gosaUnitTag was ignored) - Fixed saving of inherited workstation settings - Removed error when no FAI repositories were present - Fixed posix group add dialog, filter wasn't working. diff --git a/include/class_config.inc b/include/class_config.inc index 080f606ce..f413ecb62 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -662,10 +662,12 @@ class config { /* This function returns all available ShareServer */ function getShareServerList() { - $ldap= $this->get_ldap_link(); - $a_res = $ldap->search("(&(objectClass=goShareServer)(goExportEntry=*))",array("goExportEntry","cn")); - $return= array(); - while($entry = $ldap->fetch($a_res)){ + global $config; + $return = array(); + $ui = get_userinfo(); + $base = $config->current['BASE']; + $res = get_list("(&(objectClass=goShareServer)(goExportEntry=*))",$ui->subtreeACL,$base,array("goExportEntry","cn"),GL_SUBSEARCH); + foreach($res as $entry){ if(isset($entry['goExportEntry']['count'])){ unset($entry['goExportEntry']['count']); } @@ -674,6 +676,7 @@ class config { $sharename = $a_share[0]; $return[$entry['cn'][0]."|".$sharename] = $entry['cn'][0]." [".$sharename."]"; } + } return($return); } -- 2.30.2