Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#13297 closed enhancement (duplicate)

role needed to Moderate comments

Reported by: pbearne Owned by: ryan
Priority: normal Milestone:
Component: Comments Version: 3.0
Severity: normal Keywords:
Cc: Focuses:

Description

Hi

I have been trying to grant the ability to "Moderate comments" to Contributors group.

I have been using the Capability Manager 1.3.2 Plug-in as well Role Scoper to look at this.

There is a roll in both of them called "Moderate comments" but setting this doesn't have any effect on the ability to manage comments. I have found that (by trail and error) you need to set both "Edit others posts" and "Edit published posts" to allow this.

This is way to many rights to have to grant in order to allow a group to "Moderate comments".

I belive that is wrong and that all that should be set to allow comment moderation is for the "Moderate comments" to be set.

I may of couse be missing something here (hope so) but this does need to checked / fixed

Change History (8)

#1 @pbearne
16 years ago

I have looked at the code and it seems that the test is

$user_can = current_user_can('edit_post', $post->ID);

http://core.trac.wordpress.org/browser/branches/2.9/wp-admin/includes/template.php?rev=12494 ln 2098

so is there a global roll to allow a user to monduate all comments for a blog should there

#2 @pbearne
16 years ago

I don't think editing a post/page and editing the comments should this tied
If you can edit the post then you should be able to edit the comemnts but the right to edit the comments should be able to granted with out the the right to edit a post

#3 @scribu
16 years ago

  • Component SecurityUsers
  • Milestone 3.0Future Release

I agree. Unfortunately, this isn't something that can make it in WP 3.0.

#4 @scribu
16 years ago

  • Type defect (bug)enhancement

#5 @scribu
16 years ago

  • Keywords capabilities added; rolls removed

#6 @scribu
16 years ago

  • Summary roll needed to Moderate commentsrole needed to Moderate comments

#7 @nacin
16 years ago

  • Component UsersComments
  • Keywords capabilities removed
  • Priority highnormal
  • Severity majornormal

#8 @nacin
16 years ago

  • Milestone Future Release
  • Resolutionduplicate
  • Status newclosed
Note: See TracTickets for help on using tickets.