feat: allow course staff to view outlines as students
This adds support for course staff masquerading as any other user when viewing their own course, via user={username} querystring parameter. Rules: * Anonymous users are repesented by a blank "user" value. * If there is no "user" parameter at all, render for the user making the request. * Global staff can view any course as any user. * Course staff and instructors can view their own course as any user (including other staff, the anonymous user, or users not enrolled in their course). This commit supports TNL-8330 (switching the frontend-app-learning MFE to use the Learning Sequences API instead if Course Blocks).
Showing
- openedx/core/djangoapps/content/learning_sequences/api/permissions.py 17 additions, 2 deletions.../djangoapps/content/learning_sequences/api/permissions.py
- openedx/core/djangoapps/content/learning_sequences/tests/test_views.py 143 additions, 9 deletions...djangoapps/content/learning_sequences/tests/test_views.py
- openedx/core/djangoapps/content/learning_sequences/views.py 48 additions, 21 deletionsopenedx/core/djangoapps/content/learning_sequences/views.py
Please register or sign in to comment