WordPress.org

Make WordPress Core

Changeset 11881


Ignore:
Timestamp:
08/26/09 06:47:45 (5 years ago)
Author:
azaozz
Message:

Fix comment moderation for authors, props scribu, fixes #10677

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r11851 r11881  
    349349    } 
    350350 
    351     if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) ) 
    352         die('-1'); 
    353     if ( !current_user_can( 'moderate_comments' ) ) 
     351    if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) && !current_user_can( 'moderate_comments' ) ) 
    354352        die('-1'); 
    355353 
Note: See TracChangeset for help on using the changeset viewer.