Commit ccf95431 authored by webchick's avatar webchick

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

parent 937575eb
......@@ -73,6 +73,7 @@ function comment_admin_overview($form, &$form_state, $arg) {
$query = db_select('comment', 'c')->extend('PagerDefault')->extend('TableSort');
$query->join('node', 'n', 'n.nid = c.nid');
$query->addField('n', 'title', 'node_title');
$result = $query
->fields('c', array('cid', 'subject', 'name', 'changed'))
->condition('c.status', $status)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment