diff --git a/plugins/content_types/node_context/node_comment_form.inc b/plugins/content_types/node_context/node_comment_form.inc index 5ed6514..b99cd21 100644 --- a/plugins/content_types/node_context/node_comment_form.inc +++ b/plugins/content_types/node_context/node_comment_form.inc @@ -27,8 +27,8 @@ function ctools_node_comment_form_content_type_render($subtype, $conf, $panel_ar if (empty($node)) { $block->content = t('Comment form here.'); } - else { - if (user_access('post comments') && node_comment_mode($node->nid) == COMMENT_NODE_READ_WRITE) { + else if (node_comment_mode($node->nid) == COMMENT_NODE_READ_WRITE) { + if (user_access('post comments')) { ctools_include('form'); $form_state = array( 'ctools comment alter' => TRUE,