Applied D6LTS contrib patch SA-CONTRIB-2017-038

This commit is contained in:
Manuel Cillero 2018-05-08 12:52:33 +02:00
parent 68a6289811
commit 7555bc6a75

View file

@ -935,6 +935,10 @@ function _nodereference_potential_references_standard($field, $string = '', $mat
return array();
}
if (!user_access('administer nodes')) {
$where[] = 'n.status = 1';
}
if ($string !== '') {
$like = $GLOBALS["db_type"] == 'pgsql' ? "ILIKE" : "LIKE";
$match_clauses = array(