Applied D6LTS contrib patch SA-CONTRIB-2017-038
This commit is contained in:
parent
68a6289811
commit
7555bc6a75
1 changed files with 4 additions and 0 deletions
|
@ -935,6 +935,10 @@ function _nodereference_potential_references_standard($field, $string = '', $mat
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!user_access('administer nodes')) {
|
||||||
|
$where[] = 'n.status = 1';
|
||||||
|
}
|
||||||
|
|
||||||
if ($string !== '') {
|
if ($string !== '') {
|
||||||
$like = $GLOBALS["db_type"] == 'pgsql' ? "ILIKE" : "LIKE";
|
$like = $GLOBALS["db_type"] == 'pgsql' ? "ILIKE" : "LIKE";
|
||||||
$match_clauses = array(
|
$match_clauses = array(
|
||||||
|
|
Reference in a new issue