pub async fn get_by_user_and_course(
conn: &mut PgConnection,
user_id: Uuid,
course_id: Uuid,
) -> ModelResult<Option<CourseCreditRegistrationConsent>>Expand description
None means never asked; consent_given = false means asked and declined. Only the former
re-opens the course-start dialog.