Skip to main content

get_by_course_or_organization_role

Function get_by_course_or_organization_role 

Source
pub async fn get_by_course_or_organization_role(
    conn: &mut PgConnection,
    user_id: Uuid,
) -> ModelResult<Vec<Course>>
Expand description

The courses the user holds a role in, directly or through the course’s organization, by name. Which of them the user may edit is for headless_lms_authorization to decide.