search results, check for access
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
e218aeb4da
commit
761ffba48d
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user