pub async fn exists_for_user_and_course(
conn: &mut PgConnection,
user_id: Uuid,
course_id: Uuid,
) -> ModelResult<bool>Expand description
Whether this account has any attempt, live or replaced, on this course.
For course-scoped handlers that take a user id from a request body: without it, holding one course lets a teacher ask questions about accounts that have nothing to do with it.