Skip to main content

deactivate_service_human

Function deactivate_service_human 

Source
pub fn deactivate_service_human(
    corpus: &str,
    service: &str,
    form: Form<DeactivateForm>,
    session: Option<AdminSession>,
    pool: &State<DbPool>,
) -> Result<Redirect, Status>
Expand description

The human twin of deactivate_service: the corpus screen’s per-service “Deactivate” form. Gated by the signed-in AdminSession cookie (anonymous → sign-in) and confirmation-gated (echoes the service name), then redirects back to the corpus page. 400 if the confirmation doesn’t match, 404 if unknown.