Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#13297 closed enhancement (duplicate)

role needed to Moderate comments

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



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
6 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
6 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
6 years ago

  • Component changed from Security to Users
  • Milestone changed from 3.0 to Future Release

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

#4 @scribu
6 years ago

  • Type changed from defect (bug) to enhancement

#5 @scribu
6 years ago

  • Keywords capabilities added; rolls removed

#6 @scribu
6 years ago

  • Summary changed from roll needed to Moderate comments to role needed to Moderate comments

#7 @nacin
6 years ago

  • Component changed from Users to Comments
  • Keywords capabilities removed
  • Priority changed from high to normal
  • Severity changed from major to normal

#8 @nacin
6 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.