Index: wp-admin/includes/ajax-actions.php
===================================================================
--- wp-admin/includes/ajax-actions.php	(revision 23907)
+++ wp-admin/includes/ajax-actions.php	(working copy)
@@ -728,7 +728,7 @@
 	if ( ! $post )
 		wp_die( -1 );
 
-	if ( !current_user_can( 'edit_post', $comment_post_ID ) )
+	if ( ! current_user_can( 'edit_post', $post->ID ) )
 		wp_die( -1 );
 
 	if ( empty( $post->post_status ) )
