strangerstudios / pmpro-woocommerce

Connect Paid Memberships Pro with WooCommerce and WooCommerce Subscriptions to sell membership products and offer members-only product discounts.
https://www.paidmembershipspro.com/add-ons/pmpro-woocommerce/
46 stars 32 forks source link

Manually expiring a WooCommerce subscription allows access to restricted content #172

Closed michaelbeil closed 1 year ago

michaelbeil commented 2 years ago

Describe the bug If you manually expire a WooCommerce subscription connected to a membership, restricted content is accessible.

To Reproduce Steps to reproduce the behavior:

  1. Expire a WooCommerce subscription
  2. Restricted content is still accessible

Expected behavior Restricted content should no longer be accessible.

This came up in ticket 454768.

I changed expiry for a test account so it would expire this morning and confirmed in the account “My subscriptions.” In woo it is showing expired. However, the account is still active, with access to all content.

Isolating the problem:

WordPress Environment

``` Paid Memberships Pro 2.9.5, Paid Memberships Pro – WooCommerce Add On 1.7.4, WooCommerce 7.0.0, WooCommerce Subscriptions 4.6.0, Twenty Twenty-One theme 1.6, WordPress 6.0.3, and PHP 7.4.30 ```
andrewlimaza commented 1 year ago

I've tested this with the latest dev version and it seems that it's resolved. The user's level has been removed. This should be released soon.