Skip to main content

policy_permit_check

Function policy_permit_check 

Source
pub fn policy_permit_check(
    camera_id: u64,
    act: ProcessingAct,
    consent: BiosenseConsent,
) -> PermitAnswer
Expand description

Fail-closed permit check for a camera + processing act under a consent record.

Composes evaluate_processing_act() and attaches a clear static reason per outcome. No consent → Forbid. Never panics; no unwrap.