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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | comment.module_53.patch | 560 bytes | firebus |
Comments
Comment #1
sin commentedI 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.
Comment #2
sin commentedThis bug is fixed in HEAD yesterday at http://drupal.org/node/40563
So 4.6 must be updated too...
Comment #3
gregglesTwo issues have been marked as duplicates of this one:
http://drupal.org/node/42611
http://drupal.org/node/40569
Comment #4
firebus commentedthis 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.
Comment #5
magico commentedComment #6
magico commentedduplicate of http://drupal.org/node/58615