headless_lms_server::controllers::course_material::courses

Function get_custom_privacy_policy_checkbox_texts

Source
async fn get_custom_privacy_policy_checkbox_texts(
    course_id: Path<Uuid>,
    pool: Data<PgPool>,
    user: AuthUser,
) -> ControllerResult<Json<Vec<CourseCustomPrivacyPolicyCheckboxText>>>
Expand description

GET /courses/:course_id/custom-privacy-policy-checkbox-texts - Used to get customized checkbox texts for courses that use a different privacy policy than all our other courses (e.g. the Elements of AI course). These texts are shown in the course settings dialog.