diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-03 05:18:42 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2011-01-03 05:18:42 +0000 |
commit | ccf95431994a2cb065bf2de59eee6dd4b4c11878 (patch) | |
tree | b8f0cd56e0f650d40d5bc1d679e9a7c020674a37 /modules/comment/comment.admin.inc | |
parent | 937575ebee4f757a7821228d565552db477fe82e (diff) | |
download | brdo-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.inc | 1 |
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) |