WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Options::get_item_permissions_check() public WC 1.0

Check if a given request has access to get options.

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

No Hooks.

Return

WP_Error|true|false. Nothing.

Usage

$Options = new Options();
$Options->get_item_permissions_check( $request );
$request(WP_REST_Request) (required)
Full details about the request.

Code of Options::get_item_permissions_check() WC 5.3.0

<?php
public function get_item_permissions_check( $request ) {
	$params = explode( ',', $request['options'] );

	if ( ! isset( $request['options'] ) || ! is_array( $params ) ) {
		return new \WP_Error( 'woocommerce_rest_cannot_view', __( 'You must supply an array of options.', 'woocommerce' ), 500 );
	}

	foreach ( $params as $option ) {
		if ( ! $this->user_has_permission( $option, $request ) ) {
			return new \WP_Error( 'woocommerce_rest_cannot_view', __( 'Sorry, you cannot view these options.', 'woocommerce' ), array( 'status' => rest_authorization_required_code() ) );
		}
	}

	return true;
}