From: hickert Date: Tue, 18 Jul 2006 11:59:07 +0000 (+0000) Subject: Fixed goShare X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ef43517e55788a8f386d707dbedb6ffa523be6e;p=gosa.git Fixed goShare git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4208 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }