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

chore: example #15

Open
wants to merge 1 commit into
base: tecoholic/create-cea-for-invite-only-courses-before-checkout
Choose a base branch
from

Conversation

0x29a
Copy link
Member

@0x29a 0x29a commented Mar 1, 2024

No description provided.

Comment on lines +21 to +24
def run_filter(self, *args, **kwargs):
import ipdb
ipdb.set_trace()
return {}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the ticket description:

The filter hook will grab the relevant information from the request object like the enterprise id, catalog id, user id..etc., validate that they are allowed to enroll in the course and create the CourseEnrollmentAllowed object. This will allow them to successfully enroll without staff having to explicitly enrolle each user.

Unless we were going to modify the filter itself, it looks like the request object can't be accessed here.

The signature of this method is the same as this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant