Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
576c6080
Commit
576c6080
authored
Mar 24, 2005
by
Steven Wittens
Browse files
-
#19405
: Fix SQL in comment block for anonymous users.
parent
571369c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
576c6080
...
...
@@ -1982,7 +1982,7 @@ function node_access_view_all_nodes() {
*/
function
node_db_rewrite_sql
(
$query
,
$primary_table
,
$primary_field
)
{
if
(
$primary_field
==
'nid'
&&
!
node_access_view_all_nodes
())
{
$return
[
'join'
]
=
_node_access_join_sql
();
$return
[
'join'
]
=
_node_access_join_sql
(
$primary_table
);
$return
[
'where'
]
=
_node_access_where_sql
();
$return
[
'distinct'
]
=
1
;
return
$return
;
...
...
modules/node/node.module
View file @
576c6080
...
...
@@ -1982,7 +1982,7 @@ function node_access_view_all_nodes() {
*/
function
node_db_rewrite_sql
(
$query
,
$primary_table
,
$primary_field
)
{
if
(
$primary_field
==
'nid'
&&
!
node_access_view_all_nodes
())
{
$return
[
'join'
]
=
_node_access_join_sql
();
$return
[
'join'
]
=
_node_access_join_sql
(
$primary_table
);
$return
[
'where'
]
=
_node_access_where_sql
();
$return
[
'distinct'
]
=
1
;
return
$return
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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