From: hickert Date: Tue, 1 Jul 2008 12:44:02 +0000 (+0000) Subject: Added ACL tag to the result of getShareServerList X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a983e025cf2b5228ca16f8e3d7f0c49fcbc3ab10;p=gosa.git Added ACL tag to the result of getShareServerList git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11497 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 42e0c3dbe..225f647cf 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -826,18 +826,27 @@ class config { { global $config; $return = array(); + $ui = get_userinfo(); $base = $config->current['BASE']; $res= get_sub_list("(&(objectClass=goShareServer)(goExportEntry=*))", "server", - get_ou("serverou"), $base,array("goExportEntry","cn"),GL_NONE); + get_ou("serverou"), $base,array("goExportEntry","cn"),GL_NONE | GL_NO_ACL_CHECK); foreach($res as $entry){ + + $acl = $ui->get_permissions($entry['dn'],"server/goShareServer",""); 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."]"; + $data= array(); + $data['NAME'] = $sharename; + $data['ACL'] = $acl; + $data['SERVER'] = $entry['cn']['0']; + $data['SHARE'] = $sharename; + $data['DISPLAY']= $entry['cn'][0]." [".$sharename."]"; + $return[$entry['cn'][0]."|".$sharename] = $data; } } return($return);