From: hickert Date: Mon, 7 Aug 2006 06:21:24 +0000 (+0000) Subject: Updated getShareList function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ba7cf6bc2ef1c9916b8f9ce7f6ce318a698b6ecf;p=gosa.git Updated getShareList function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4406 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_config.inc b/include/class_config.inc index 169b576aa..9657e7ca0 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -677,15 +677,16 @@ class config { $res= get_list("(&(objectClass=goShareServer)(goExportEntry=*))", $categories, $base,array("goExportEntry","cn"),GL_SUBSEARCH); foreach($res as $entry){ - if(isset($entry['goExportEntry']['count'])){ - unset($entry['goExportEntry']['count']); - } - foreach($entry['goExportEntry'] as $share){ - $a_share = split("\|",$share); - $sharename = $a_share[0]; - $return[$entry['cn'][0]."|".$sharename] = $entry['cn'][0]." [".$sharename."]"; + if(obj_is_readable($entry['dn'], "server/goShareServer","goExportEntry")){ + if(isset($entry['goExportEntry']['count'])){ + unset($entry['goExportEntry']['count']); + } + foreach($entry['goExportEntry'] as $share){ + $a_share = split("\|",$share); + $sharename = $a_share[0]; + $return[$entry['cn'][0]."|".$sharename] = $entry['cn'][0]." [".$sharename."]"; + } } - } return($return); }