blob: 5cf0d337d5d76197168f718673ea022d04256215 [file] [log] [blame]
<?php
/**
* Class WC_Stripe_REST_Base_Controller
*/
defined( 'ABSPATH' ) || exit;
/**
* REST controller for transactions.
*/
class WC_Stripe_REST_Base_Controller extends WP_REST_Controller {
/**
* Endpoint namespace.
*
* @var string
*/
protected $namespace = 'wc/v3';
/**
* Verify access.
*
* Override this method if custom permissions required.
*/
public function check_permission() {
return current_user_can( 'manage_woocommerce' );
}
}