strangerstudios / pmpro-courses

Create courses with lessons and manage member access access natively in Paid Memberships Pro. Also integrates membership with third party LMS plugins like LifterLMS, LearnDash, Tutor LMS, and Sensei LMS.
https://www.paidmembershipspro.com/add-ons/pmpro-courses-lms-integration/
3 stars 12 forks source link

Improved logic for Tutor LMS lessons #39

Closed andrewlimaza closed 2 years ago

andrewlimaza commented 2 years ago

To add to this, I'm not sure if Tutor LMS had changed things but the issue was the structure of a lesson was nested within a topic. (i.e. Course A > Topic 1 > Lesson 1.1). Our code was checking if the user has access to a current post or not which would give access even if the course is restricted.

Scenarios

This now restricts lessons as long as the member does not have access to the actual course "object". It will redirect back to the course main page until access is granted. Fixes issues with the Approvals Add On.

All Submissions: