Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WC Paid Courses: Preview setting for a lesson is ignored when the course access expired #7630

Closed
merkushin opened this issue Jul 17, 2024 · 1 comment · Fixed by #7657
Closed
Assignees
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Pri] Normal Can wait for the next release [Type] Bug
Milestone

Comments

@merkushin
Copy link
Member

Steps to Reproduce

  1. Install WCPC 4.24.1.1.24.0.
  2. Go to Sensei LMS > Courses.
  3. Create a course with 3 lessons (add some content to lessons).
  4. Set the expiration period for the course.
  5. Publish the course.
  6. Go to one of the lessons, add a quiz for it, and enable Preview setting in the sidebar.
  7. Update the lesson.
  8. Make sure you can see the lesson content in the Incognito mode.
  9. Create a student user.
  10. Complete the course with this user.
  11. As an admin, go to Students, find the test course.
  12. Update the Access Expiration for the student, so that the access is expired now.
  13. As a student, go to the lesson with the Preview setting enabled.

What I Expected

I expect to see the lesson content.
And the results of the quiz are also available.

What Happened Instead

Content is not available.

PHP / WordPress / Sensei LMS version

WCPC 4.24.1.1.24.0.

Context / Source

8488916-zd-a8c

The issue was probably introduced here: https://github.com/Automattic/sensei-pro/pull/2562/files#diff-b22fdd93fbf63f8a7e3bc3315e1a114c93832dcea88b1eddd2f9eaae3a66b286R107

Copy link

Support References

This comment is automatically generated. Please do not edit it.

  • 8488916-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Jul 17, 2024
@merkushin merkushin added this to the 4.24.2 milestone Jul 18, 2024
@donnapep donnapep added the [Pri] Normal Can wait for the next release label Jul 18, 2024
@merkushin merkushin self-assigned this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Pri] Normal Can wait for the next release [Type] Bug
Projects
None yet
2 participants