I would appreciate if anonymous comments permissions could be granted by node type.

One might want to allow anonymous comments on blog posts, but all other node types, users have to be registered to comment.

Thank you

Comments

Anonymous’s picture

So how complex or how simple should we make this?

One way to do this would be to change comments permissions from...

Administer comments
Access comments
Post comments
Post comments without approval

...to...

Administer comments for all node types
Access comments for all node types
Post comments for all node types
Post comments without approval for all node types

...And then for each node type, add the following four permissions...

Administer comments for (node type) nodes
Access comments for (node type) nodes
Post comments for (node type) nodes
Post comments without approval for (node type) nodes

This would give site admins complete control. They may want to allow anonymous users to post comments without approval on blogs, but with approval on page nodes, but disallow them to post comments on all other node types, and/or prevent them from viewing comments in other node types.

But I guess this functionality would really belong in an add on module like "advanced_comment_permissions" and should be separate from core.

sun.core’s picture

Version: 7.x-dev » 8.x-dev
chx’s picture

I have a module that does this and will release in a few hours once I have the tests written.

chx’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.