Skip to main content

audit

Function audit 

Source
pub(crate) fn audit(
    state: &AppState,
    by: Option<&str>,
    action: &str,
    host_id: &str,
    container_id: &str,
    block_id: &str,
)
Expand description

Records what the person declined, or what an agent asked, in the audit log: by is the asking agent’s slug, and None for the person’s own window. The go-ahead is recorded by backend::folder_overlap::accept_as, which writes its row before the choice it records.