Skip to content
Snippets Groups Projects
Commit ccf95431 authored by Angie Byron's avatar Angie Byron
Browse files

#904214 by moshe weitzman: Fixed administer comments does not respect node access.

parent 937575eb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -73,6 +73,7 @@ function comment_admin_overview($form, &$form_state, $arg) { ...@@ -73,6 +73,7 @@ function comment_admin_overview($form, &$form_state, $arg) {
$query = db_select('comment', 'c')->extend('PagerDefault')->extend('TableSort'); $query = db_select('comment', 'c')->extend('PagerDefault')->extend('TableSort');
$query->join('node', 'n', 'n.nid = c.nid'); $query->join('node', 'n', 'n.nid = c.nid');
$query->addField('n', 'title', 'node_title'); $query->addField('n', 'title', 'node_title');
$query->addTag('node_access');
$result = $query $result = $query
->fields('c', array('cid', 'subject', 'name', 'changed')) ->fields('c', array('cid', 'subject', 'name', 'changed'))
->condition('c.status', $status) ->condition('c.status', $status)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment