[wp-trac] [WordPress Trac] #12104: edit-comments.php not available to roles with proper capabilities

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 22 09:10:06 UTC 2010


#12104: edit-comments.php not available to roles with proper capabilities
--------------------------+-------------------------------------------------
 Reporter:  sillybean     |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Comments      |     Version:  3.0       
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------

Comment(by nacin):

 I'm thinking about improvements to this while being backwards compatible.
 If we used moderate_comments as the entrance, then further restricted it
 by a new meta cap, moderate_comment. moderate_comment is more or less a
 copy of the edit_post meta cap, which means edit_posts, edit_others_posts,
 etc. They would be based on their counterparts.

 For the moderation role, we'd need to figure out a way to flip
 moderate_comment to on for all. That could easily be done via a filter on
 map_meta_cap, or perhaps some other wider cap. Point is, the separation is
 a start and would allow plugins to control this consistently.

 I'm probably missing something. Just figured I'd muse and progress the
 ticket along ever so slightly. On the other hand, if this seems like a
 good idea to anyone, I can put it on my to-do list.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12104#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list