pub async fn can_user_view_chapter(
conn: &mut PgConnection,
user_id: Option<Uuid>,
course_id: Option<Uuid>,
chapter_id: Option<Uuid>,
) -> AuthorizationResult<bool>Expand description
Checks whether the user may view a chapter, which may be closed to everyone but certain roles.