Whether current user has a capability or role for a given blog.

Signature

current_user_can_for_blog( $blog_id, $capability )
blog_id
 (int) Blog ID
capability
 (string) Capability or role name.

Return

(boolean)

Source

function current_user_can_for_blog( $blog_id, $capability ) {
	if ( is_multisite() )
		switch_to_blog( $blog_id );

	$current_user = wp_get_current_user();

	if ( empty( $current_user ) )
		return false;

	$args = array_slice( func_get_args(), 2 );
	$args = array_merge( array( $capability ), $args );

	$can = call_user_func_array( array( $current_user, 'has_cap' ), $args );

	if ( is_multisite() )
		restore_current_blog();

	return $can;
}
WP Trac GitHub

Link here