Closed brianhogg closed 2 months ago
I believe the page should be visible since the student is still in the second membership.
Page is not accessible with an error saying "You must belong to one of the following memberships to access this content: or A second membership"
I think in llms_is_post_restricted_by_membership() we want to exclude checking for enrolments in memberships that aren't valid.
llms_is_post_restricted_by_membership()
This issue has be recreated:
This is now fixed. The multi-membership listing was reverted, and deleted memberships no longer prevent access from my testing.
Reproduction Steps
Expected Behavior
I believe the page should be visible since the student is still in the second membership.
Actual Behavior
Page is not accessible with an error saying "You must belong to one of the following memberships to access this content: or A second membership"
Technical Notes
I think in
llms_is_post_restricted_by_membership()
we want to exclude checking for enrolments in memberships that aren't valid.This issue has be recreated: