Function: licenseGate()
function licenseGate(
snapshot,
can,
feature
): LicenseGate;
Defined in: license.ts:71
The docs/15 §5.2 decision table.
Feature gating (can(feature) false) applies only in the token-backed
states active/grace: those are the states in which the claims are the
authority on what was bought. evaluating and trial are all-features by
definition, and limited/invalid are already unlicensed.
Parameters
| Parameter | Type |
|---|---|
snapshot | LicenseSnapshot | undefined |
can | (feature) => boolean |
feature | string |