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...

AttachmentSizeStatusTest resultOperations
comments_2.patch2.88 KBIgnoredNoneNone

#1

drumm - June 14, 2007 - 06:45
Version:5.1» 6.x-dev

This feature will not be put in the stable Drupal 5.x.

#2

catch - October 29, 2007 - 12:04
Version:6.x-dev» 7.x-dev
Status:needs review» needs work

No longer applies.

#3

yngens - April 10, 2008 - 09:50

subscribe

#4

macgirvin - April 10, 2008 - 10:09

subscribe

#5

thehong - April 11, 2008 - 08:15

Organic Group needs this feature too.

#6

Damien Tournoud - April 11, 2008 - 08:29

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

yngens - April 11, 2008 - 09:14

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

webchick - September 4, 2008 - 12:05

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

catch - September 4, 2008 - 23:18

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

marcoBauli - December 16, 2008 - 13:36

rerolled original patch against D5.14 in case someone needs in the meantime

AttachmentSizeStatusTest resultOperations
users_admin_own_comments.diff2.45 KBIgnoredNoneNone

#11

johanneshahn - December 23, 2008 - 16:22

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

manop - April 26, 2009 - 15:54

subscribe. I would love to see this feature too.

#13

jct - May 6, 2009 - 15:33

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

hamaldus - May 24, 2009 - 20:38

Subscribing

#15

izmeez - November 6, 2009 - 20:55

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.