Skip to main content

get_by_verification_id

Function get_by_verification_id 

Source
pub async fn get_by_verification_id(
    conn: &mut PgConnection,
    verification_id: &str,
) -> ModelResult<Option<UserCertificate>>
Expand description

The certificate a verification id addresses, or None when no active certificate has that id.

Unlike get_certificate_by_verification_id this carries the owning course, which is what an admin acting on a certificate has to be authorized against.