Wordpress 4.5.3
[autoinstalls/wordpress.git] / wp-admin / includes / ajax-actions.php
index e3b345c53c8ba37b42b092051c174e0d8b3a60f6..0f5583682bf2a66ba6910bcd2ec1c5721cc954e5 100644 (file)
@@ -2761,7 +2761,7 @@ function wp_ajax_get_revision_diffs() {
        if ( ! $post = get_post( (int) $_REQUEST['post_id'] ) )
                wp_send_json_error();
 
-       if ( ! current_user_can( 'read_post', $post->ID ) )
+       if ( ! current_user_can( 'edit_post', $post->ID ) )
                wp_send_json_error();
 
        // Really just pre-loading the cache here.