search results, check for access

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy 2012-10-30 18:08:52 +01:00
parent e218aeb4da
commit 761ffba48d

View File

@ -190,6 +190,15 @@ function materio_search_api_results_search(){//, $limit = 20, $page = 0
// dsm($results, 'results');
// $accessible_results = array();
// foreach ($results['results'] as $nid => $entity) {
// if(node_access('view', node_load($nid)))
// $accessible_results[$nid] = $entity;
// }
// $results['results'] = $accessible_results;
// $results['result count'] = count($accessible_results);
# Load spellcheck.
// if (isset($results['search_api_spellcheck'])) {
// $ret['results']['#spellcheck'] = array(