Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
ApiController::is_authorized
Checks if the current user has the necessary permissions to access the API.
Method of the class: ApiController{}
No Hooks.
Returns
true|false. True if the user has the necessary permissions, false otherwise.
Usage
$ApiController = new ApiController(); $ApiController->is_authorized();
ApiController::is_authorized() ApiController::is authorized code WC 10.7.0
public function is_authorized() {
return is_user_logged_in() && (
current_user_can( 'manage_woocommerce' ) || current_user_can( 'manage_options' )
);
}