Skip to main content

verify_represented_principal

Function verify_represented_principal 

Source
pub fn verify_represented_principal(
    lic: &DomainLicence,
    principal_ctx: &RepresentedPrincipalContext,
) -> Result<(), LicenceError>
Expand description

Verify that a DomainLicence class is valid for the RepresentedPrincipalContext.

Enforces that commercial principals/beneficiaries acting through natural-person or AI agents cannot claim gratis community or personal tiers.