Skip to main content

resolve_published_preview

Function resolve_published_preview 

Source
pub async fn resolve_published_preview(
    conn: &mut PgConnection,
    course_id: Uuid,
    page_id: Uuid,
) -> ModelResult<PagePreview>
Expand description

What a preview link of the published page_id of course_id renders. The caller checks that the link’s user may still edit the course. Errors with NotFound if the page is not in the course.