63
63
if ( ! $post = get_post( $revision->post_parent ) )
66
if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'read_post', $post->ID ) )
66
if ( ! current_user_can( 'read_post', $revision->ID ) || ! current_user_can( 'edit_post', $revision->post_parent ) )
69
69
// Revisions disabled and we're not looking at an autosave