WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Options::get_option_permissions() public WC 1.0

Get an array of options and respective permissions for the current user.

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

Return

Array. Nothing.

Usage

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

Code of Options::get_option_permissions() WC 5.2.2

<?php
public function get_option_permissions( $request ) {
	$permissions = array(
		'theme_mods_' . get_stylesheet()     => current_user_can( 'edit_theme_options' ),
		'woocommerce_setup_jetpack_opted_in' => current_user_can( 'manage_woocommerce' ),
		'woocommerce_stripe_settings'        => current_user_can( 'manage_woocommerce' ),
		'woocommerce-ppcp-settings'          => current_user_can( 'manage_woocommerce' ),
		'woocommerce_ppcp-gateway_setting'   => current_user_can( 'manage_woocommerce' ),
		'woocommerce_demo_store'             => current_user_can( 'manage_woocommerce' ),
		'woocommerce_demo_store_notice'      => current_user_can( 'manage_woocommerce' ),
	);

	return apply_filters( 'woocommerce_rest_api_option_permissions', $permissions, $request );
}