summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-03 05:18:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2011-01-03 05:18:42 +0000
commitccf95431994a2cb065bf2de59eee6dd4b4c11878 (patch)
treeb8f0cd56e0f650d40d5bc1d679e9a7c020674a37 /modules/comment/comment.admin.inc
parent937575ebee4f757a7821228d565552db477fe82e (diff)
downloadbrdo-ccf95431994a2cb065bf2de59eee6dd4b4c11878.tar.gz
brdo-ccf95431994a2cb065bf2de59eee6dd4b4c11878.tar.bz2
#904214 by moshe weitzman: Fixed administer comments does not respect node access.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index 1f0a51664..1b050b106 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -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');
+ $query->addTag('node_access');
$result = $query
->fields('c', array('cid', 'subject', 'name', 'changed'))
->condition('c.status', $status)