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

Instructor can't request certificate on behalf of a learner when masquerading as a learner #34112

Open
graeme44 opened this issue Jan 25, 2024 · 0 comments

Comments

@graeme44
Copy link

As an instructor, masquerading as a learner who has passed the course – I am unable to request a certificate on behalf of that leaner.

The generate_user_cert function uses request.user for the student object.

There is a note in the _progress function:

# NOTE: To make sure impersonation by instructor works, use
# student instead of request.user in the rest of the function.

I believe this is how the generate_user_cert function should also work when an instructor is using the masquerade feature.

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

No branches or pull requests

1 participant