Allow users to moderate/administer comments for their own nodes
mikesmullin - May 25, 2007 - 07:32
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | comment.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
This is useful when you allow users to have their own blogs, but don't really want to manage their comments or have them managing their comments and everyone else's. Now they can just click the delete link below each comment for nodes they authored...
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| comments_2.patch | 2.88 KB | Ignored | None | None |

#1
This feature will not be put in the stable Drupal 5.x.
#2
No longer applies.
#3
subscribe
#4
subscribe
#5
Organic Group needs this feature too.
#6
This is a good idea, but the implementation is wrong. The permission should be based on the node type, and the
user_owns_node()hack is useless.#7
i am looking either this or User Comment module to be ported to Drupal 6.x. I put small bounty and call others to second my call. Details: http://drupal.org/node/234204#comment-802908
#8
Marked #295352: Comment permission granulation a duplicate, which has a patch.
I'd like to see this get into Drupal 7, but definitely configurable per content type rather than at a global level. While I probably want users to be able to manage comments to their blog posts, I probably do not want them managing comments to their forum topics.
#9
Would make sense to have create foo, edit own foo, administer comments on own foo, edit all foo, although that won't actually work with our permissions page being grouped by module.
#10
rerolled original patch against D5.14 in case someone needs in the meantime
#11
There's an error in your patch
@@ -1076,7 +1076,10 @@
$output = '';
- if (is_object($comment) && is_numeric($comment->cid)) {
+ if (!comment_access('delete', $comment)) {
change it tfrom 'delete' to 'edit'
@@ -1076,7 +1076,10 @@
$output = '';
- if (is_object($comment) && is_numeric($comment->cid)) {
+ if (!comment_access('edit', $comment)) {
#12
subscribe. I would love to see this feature too.
#13
I had to change line 385 in comment.module from
'#access' => user_access('administer comments') ,to
'#access' => user_access('administer comments') || user_access('administer comments in own node'),to give users access to the "Comment settings" form on node add/edit.
#14
Subscribing
#15
subscribe