Skip to content

feat: decouple enterprise from courseware view redirects, course start-date validation, and course access checks#38102

Draft
pwnage101 wants to merge 1 commit into
masterfrom
pwnage101/ENT-11544
Draft

feat: decouple enterprise from courseware view redirects, course start-date validation, and course access checks#38102
pwnage101 wants to merge 1 commit into
masterfrom
pwnage101/ENT-11544

Conversation

@pwnage101
Copy link
Copy Markdown
Contributor

@pwnage101 pwnage101 commented Mar 5, 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.
  • 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.
  • 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.

ENT-11544


Blocked by:

@pwnage101 pwnage101 added the enterprise An enterprise-related change label Mar 18, 2026
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-11544 branch 5 times, most recently from f09f36f to 6f251ba Compare May 20, 2026 01:11
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-11544 branch from 6f251ba to 3760bd3 Compare May 21, 2026 16:46
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-11544 branch 6 times, most recently from 1133be1 to 6ab7a92 Compare June 2, 2026 22:51
@pwnage101 pwnage101 changed the title feat: replace DSC decorator and enterprise imports in courseware feat: decouple enterprise from courseware view redirects, course start-date validation, and course access checks Jun 2, 2026
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-11544 branch from 6ab7a92 to c17e7e1 Compare June 2, 2026 23:47
…t-date validation, and course access checks

* 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.
* 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.
* 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.

ENT-11544

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@pwnage101 pwnage101 force-pushed the pwnage101/ENT-11544 branch from c17e7e1 to b11f1da Compare June 3, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enterprise An enterprise-related change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant