strangerstudios / pmpro-approvals

Grants administrators the ability to approve/deny memberships after signup.
https://www.paidmembershipspro.com/add-ons/approval-process-membership/
19 stars 28 forks source link

BUG: Membership level is granted regardless of previously approved membership level requirement #168

Open dwanjuki opened 1 year ago

dwanjuki commented 1 year ago

Describe the bug When a membership level's Require Approval setting is set to Yes. User must have an approved membership for a different level, new users are able to check out for the level and get access to the content despite not having a previously approved membership.

To Reproduce Steps to reproduce the behavior:

  1. Create a membership level. Set it to require approval from an admin
  2. Create a second membership level. Set it to require an approved membership from the first level.
  3. Attempt to checkout for the second membership level, creating a new account.

Expected behavior Checkout should be restricted as the new account does not have an approved membership for a different level. Instead, the membership level is granted.

Isolating the problem (mark completed items with an [x]):

wbgraphics commented 1 year ago

I'm encountering exactly the same issue. Don't know if this matters, but I was not able to find any records related to approvals in the database.