feat: decouple enterprise from courseware view redirects, course start-date validation, and course access checks - #38102
Merged
Merged
Conversation
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
5 times, most recently
from
May 20, 2026 01:11
f09f36f to
6f251ba
Compare
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
from
May 21, 2026 16:46
6f251ba to
3760bd3
Compare
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
6 times, most recently
from
June 2, 2026 22:51
1133be1 to
6ab7a92
Compare
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
12 times, most recently
from
June 9, 2026 02:47
9c69294 to
83a0815
Compare
This was referenced Jun 9, 2026
Instead of an enterprise-specific view decorator conditionally redirecting learners to a consent view, plugins can now hook into the CoursewareViewStarted filter to redirect anywhere. ENT-11544
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
from
June 24, 2026 21:44
83a0815 to
774ec22
Compare
pwnage101
marked this pull request as ready for review
June 24, 2026 23:11
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
from
June 24, 2026 23:26
2ec66c8 to
539cd92
Compare
Instead of enterprise-specific logic throwing an enterprise-specific start date validation error, CourseStartDateValidationFailed filter can now be used by plugins to throw a custom start date error. ENT-11544
Instead of enterprise/consent-specific access checks baked into check_course_access, the CoursewareAccessChecksRequested filter lets plugins deny courseware access with a generic priority access error. This also removes orphaned utility functions from enterprise_support: * consent_needed_for_course * get_enterprise_consent_url * get_active_enterprise_customer_user ENT-11544
pwnage101
force-pushed
the
pwnage101/ENT-11544
branch
from
June 24, 2026 23:27
539cd92 to
c578f56
Compare
marlonkeating
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ENT-11544
Blocked by: