Skip to content
Snippets Groups Projects
Unverified Commit 44b23fcc authored by Michael Terry's avatar Michael Terry Committed by GitHub
Browse files

Merge pull request #25592 from edx/mikix/courseware-request-user

When masquerading in courseware API, reset the request user
parents 586d6721 7697b7dd
No related merge requests found
......@@ -72,6 +72,7 @@ class CoursewareMeta:
course_key,
staff_access=self.original_user_is_staff,
)
self.request.user = self.effective_user
self.is_staff = has_access(self.effective_user, 'staff', self.overview).has_access
self.enrollment_object = CourseEnrollment.get_enrollment(self.effective_user, self.course_key,
select_related=['celebration'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment