Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
d6lts
Commits
8f3b0a3c
Commit
8f3b0a3c
authored
Apr 18, 2017
by
dsnopek
Committed by
dsnopek
Apr 18, 2017
Browse files
Issue
#2870804
by dsnopek: [cck] Fix for SA-
CONTRIB-2017
-038
parent
0a05e348
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/contrib/cck/SA-CONTRIB-2017-038.patch
0 → 100644
View file @
8f3b0a3c
diff --git a/modules/nodereference/nodereference.module b/modules/nodereference/nodereference.module
index 5969a4f..0170cf1 100644
--- a/modules/nodereference/nodereference.module
+++ b/modules/nodereference/nodereference.module
@@ -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(
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment