Ensure access permissions to node comment
This commit is contained in:
parent
6630f264ef
commit
be34a0703f
1 changed files with 22 additions and 22 deletions
|
@ -170,7 +170,7 @@ function _nodecomment_comment_links(&$links, &$node, $teaser) {
|
|||
// But the core comment does the same.
|
||||
// Fixing this properly will require an advanced node access module.
|
||||
$target_node = node_load($node->comment_target_nid);
|
||||
if ($target_node && nodecomment_is_readwrite($target_node)) {
|
||||
if ($target_node && $target_node->status == 1 && nodecomment_is_readwrite($target_node)) {
|
||||
if (node_access('update', $node)) {
|
||||
$links['comment_edit'] = array(
|
||||
'title' => t('edit'),
|
||||
|
|
Reference in a new issue