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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-08-26 06:47:45 +00:00
parent 40771b0bf4
commit b7f7105c2b
1 changed files with 1 additions and 3 deletions

View File

@ -348,9 +348,7 @@ case 'dim-comment' : // On success, die with time() instead of 1
$x->send(); $x->send();
} }
if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) ) if ( !current_user_can( 'edit_post', $comment->comment_post_ID ) && !current_user_can( 'moderate_comments' ) )
die('-1');
if ( !current_user_can( 'moderate_comments' ) )
die('-1'); die('-1');
$current = wp_get_comment_status( $comment->comment_ID ); $current = wp_get_comment_status( $comment->comment_ID );