Users with "administer comments" but not "administer nodes" who can create new nodes, always create nodes with user comments set to "Disabled", and not to the default comment setting.

This is because in 4.6.3 the "admin form" nodeapi only shows the user comments section if the user has "administer nodes" and "administer comments". The "validate" nodeapi only sets the user comments attribute if not an "administer comments" user. So, in the case described, the user comments attribute is never set.

CommentFileSizeAuthor
#4 comment.module_53.patch560 bytesfirebus

Comments

sin’s picture

Version: 4.6.3 » 4.7.0-beta2

I noted this bug in 4.7 beta 2... I have role without administer comments and administer nodes rights but with post comments without approval and add flexinode custom content type nodes rights. Default comment setting is ignored, comments always disabled for new nodes.

sin’s picture

Version: 4.7.0-beta2 » 4.6.3

This bug is fixed in HEAD yesterday at http://drupal.org/node/40563
So 4.6 must be updated too...

greggles’s picture

Two issues have been marked as duplicates of this one:

http://drupal.org/node/42611
http://drupal.org/node/40569

firebus’s picture

Version: 4.6.3 » 4.6.6
StatusFileSize
new560 bytes

this is still broken in 4.6.6

an easy edit to comment.module fixes this.

change line 258 from
if (!user_access('administer comments')) {
to
if (!user_access('administer nodes')) {

now you can have a user with administer_comments and without administer_nodes and they can create content with correct content type comment defaults.

patch attached.

magico’s picture

Version: 4.6.6 » 4.6.9
Status: Active » Needs review
magico’s picture

Status: Needs review » Closed (duplicate)