comment_form_submit() calls user_access('post comments'), and if denied, will not save the comment.

This makes the comment_form impossible to submit via drupal_form_execute(). At least, without playing complex and potentially dangerous tricks with the global user.

The comment form is not displayed unless the user has permission. Why check again?

Comments

agentrickard’s picture

Status: Active » Closed (duplicate)