WordPress File wp-includes/capabilities.php

user_can()

Returns whether a particular user has the specified capability.

wp_roles()

Retrieves the global WP_Roles instance and instantiates it if necessary.