checkAssertion
Check a specific EntityAssertion Exported purely for testing. Not exported from the package.
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| assertion Required | IPolicyAssertion | ||
| entity Required | Record<stringany> | ||
| context Required | IArcGISContext |
Returns
| Property | Type | Notes |
|---|---|---|
| string |
Policy Response code, for i18n |
|
| string |
Description of the policy being checked e.g. License Required: "hub-premium" |
|
| PolicyResponse |
Policy Response string |
|
| string |
Value determined for the current user e.g. "hub-basic" |
Function defined in packages/common/src/permissions/_internal/checkAssertion.ts:18