WordPress File wp-includes/capabilities.php

author_can()

Returns whether the author of the supplied post has the specified capability.

map_meta_cap()

Maps a capability to the primitive capabilities required of the given user to satisfy the capability being checked.