Allow anonymous access for course blocks API
Opens the course blocks API to public access, and allows anonymous users to use the API to fetch data about public courses. Anonymous users need to explicitly pass an empty username parameter to get the block data that is visible to the public.
Showing
- lms/djangoapps/course_api/blocks/forms.py 77 additions, 20 deletionslms/djangoapps/course_api/blocks/forms.py
- lms/djangoapps/course_api/blocks/permissions.py 22 additions, 3 deletionslms/djangoapps/course_api/blocks/permissions.py
- lms/djangoapps/course_api/blocks/tests/test_views.py 112 additions, 23 deletionslms/djangoapps/course_api/blocks/tests/test_views.py
- lms/djangoapps/course_api/blocks/views.py 18 additions, 7 deletionslms/djangoapps/course_api/blocks/views.py
Please register or sign in to comment