WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#19287 closed feature request (duplicate)

Comment management capabilities

Reported by: johnbillion Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: Role/Capability Keywords:
Focuses: Cc:
PR Number:

Description

I thought this had been brought up before but I can't find a relevant ticket mentioning edit_comments or manage_comments.

The capability required to access the Comments screen is edit_posts. If you have a custom post type with its own capabilities (eg. edit_foos instead of edit_posts) then it's not possible to give access to the comments screen (for viewing comments on custom post types) to users with the edit_foos capability but without the edit_posts capability.

Ideally the capabilities relating to comments would be linked to post types, for example edit_post_comments, edit_page_comments and edit_foo_comments along with an edit_comments meta capability, but this might be asking a little too much.

Related: #19286, #18596.

Change History (4)

#1 @johnbillion
8 years ago

  • Type changed from enhancement to feature request

#2 @linuxologos
8 years ago

Comment moderation capabilities have been brought into consideration from slightly different point of view from time to time. It would be nice to solve this once and for all...

See: #4802, #6907, #12104 and others possibly.

#3 @knutsp
8 years ago

  • Cc knut@… added

I suggest keeping moderate_comments for accept/reject. Then add manage_comments (spam/trash/restore) and edit_comments for anything else. No special capabilities for each post type they relate to.

Reasons: Keep it simple. Comments are a special content type in it's own, and are only related to public post objects.

#4 @scribu
8 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closing as dup of #12104

Note: See TracTickets for help on using tickets.