pub async fn acknowledge(
conn: &mut PgConnection,
user_id: Uuid,
course_id: Uuid,
) -> ModelResult<()>Expand description
Records that the given user has acknowledged the AI-usage / academic-integrity notice for the course language group the given course belongs to. Acknowledgement is stored per course language group, so accepting the notice on one language version covers all language versions. Idempotent: a second call for the same (user, course language group) does nothing.