pub async fn authorize_access_to_course_material(
conn: &mut PgConnection,
user_id: Option<Uuid>,
course_id: Uuid,
) -> AuthorizationResult<AuthorizationToken>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,
) -> AuthorizationResult<AuthorizationToken>Checks whether the user may view course material.