pub async fn authorize_access_to_course_material(
conn: &mut PgConnection,
user_id: Option<Uuid>,
course_id: Uuid,
) -> Result<AuthorizationToken, AuthorizationError>Expand description
Checks whether the user may view course material.
pub async fn authorize_access_to_course_material(
conn: &mut PgConnection,
user_id: Option<Uuid>,
course_id: Uuid,
) -> Result<AuthorizationToken, AuthorizationError>Checks whether the user may view course material.