Index: link-template.php
===================================================================
--- link-template.php	(revision 18113)
+++ link-template.php	(working copy)
@@ -911,7 +911,13 @@
 	if ( !$post_type_object )
 		return;
 
-	if ( !current_user_can( $post_type_object->cap->edit_post, $post->ID ) )
+	if ( $post_type_object->name == 'revision' ) {
+		$post_cap_id = $post->post_parent;
+	}
+	else {
+		$post_cap_id = $post->ID;
+	}
+	if ( !current_user_can( $post_type_object->cap->edit_post, $post_cap_id ) )
 		return;
 
 	return apply_filters( 'get_edit_post_link', admin_url( sprintf($post_type_object->_edit_link . $action, $post->ID) ), $post->ID, $context );
