Add Content Type Gating Behind Waffle Flag
Content Type Gating: Xblocks that have a graded component cannot be accessed by audit track users. - Caveats: - In studio, instructors can set certain xblocks to be available to all users, but graded components will default to not being available for audit users - If a course does not have a verified mode option, all users will have access to graded content. The Waffle Flag: The waffle flag is of for now. It's name is: ```content_type_gating.debug``` This Commit Does NOT Include: Displaying for a user WHY they do not have access to a specific piece of content. That change will be part of another PR.
Showing
- cms/envs/common.py 1 addition, 0 deletionscms/envs/common.py
- common/lib/xmodule/xmodule/partitions/partitions.py 1 addition, 1 deletioncommon/lib/xmodule/xmodule/partitions/partitions.py
- common/lib/xmodule/xmodule/partitions/partitions_service.py 1 addition, 4 deletionscommon/lib/xmodule/xmodule/partitions/partitions_service.py
- lms/djangoapps/course_blocks/api.py 19 additions, 6 deletionslms/djangoapps/course_blocks/api.py
- lms/djangoapps/courseware/access.py 40 additions, 17 deletionslms/djangoapps/courseware/access.py
- lms/djangoapps/courseware/access_response.py 29 additions, 0 deletionslms/djangoapps/courseware/access_response.py
- lms/djangoapps/courseware/tests/test_module_render.py 4 additions, 4 deletionslms/djangoapps/courseware/tests/test_module_render.py
- lms/envs/common.py 6 additions, 1 deletionlms/envs/common.py
- lms/templates/vert_module.html 5 additions, 3 deletionslms/templates/vert_module.html
- openedx/features/content_type_gating/block_transformers.py 49 additions, 0 deletionsopenedx/features/content_type_gating/block_transformers.py
- openedx/features/content_type_gating/field_override.py 40 additions, 0 deletionsopenedx/features/content_type_gating/field_override.py
- openedx/features/content_type_gating/partitions.py 46 additions, 2 deletionsopenedx/features/content_type_gating/partitions.py
- setup.py 2 additions, 1 deletionsetup.py
Please register or sign in to comment