mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-12 12:22:56 +00:00
2.5.3
This commit is contained in:

committed by
Remco Tolsma

parent
99a693a46f
commit
e38fdb9d42
@@ -121,7 +121,7 @@ class WC_API_Subscriptions extends WC_API_Orders {
|
||||
public function get_subscriptions( $fields = null, $filter = array(), $status = null, $page = 1 ) {
|
||||
// check user permissions
|
||||
if ( ! current_user_can( 'read_private_shop_orders' ) ) {
|
||||
return new WP_Error( 'wcs_api_user_cannot_read_susbcription_count', __( 'You do not have permission to read the subscriptions count', 'woocommerce-subscriptions' ), array( 'status' => 401 ) );
|
||||
return new WP_Error( 'wcs_api_user_cannot_read_subscription_count', __( 'You do not have permission to read the subscriptions count', 'woocommerce-subscriptions' ), array( 'status' => 401 ) );
|
||||
}
|
||||
|
||||
$status = $this->format_statuses( $status );
|
||||
|
Reference in New Issue
Block a user