WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Options::user_has_permission() public WC 1.0

Check if the user has permission given an option name.

{} It's a method of the class: Options{}

No Hooks.

Return

true|false. Nothing.

Usage

$Options = new Options();
$Options->user_has_permission( $option, $request );
$option(string) (required)
Option name.
$request(WP_REST_Request) (required)
Full details about the request.

Code of Options::user_has_permission() WC 5.3.0

<?php
public function user_has_permission( $option, $request ) {
	$permissions = $this->get_option_permissions( $request );

	if ( isset( $permissions[ $option ] ) ) {
		return $permissions[ $option ];
	}

	return current_user_can( 'manage_options' );
}