Skip to main content

init_for_users

Function init_for_users 

Source
pub async fn init_for_users(
    conn: &mut PgConnection,
    course_id: Uuid,
    user_ids: &[Uuid],
) -> ModelResult<()>
Expand description

Starts chapter locking in the course for the users: every chapter without a status gets not_unlocked_yet, and users whose chapters are all not_unlocked_yet get the starting chapters unlocked. For courses with chapter locking on.