checkCapabilityAccess
Check an individual capability access rule
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
rule Required | ICapabilityPermission | ||
context Required | IArcGISContext | ||
entity Required | HubEntity |
Returns
Property | Type | Notes |
---|---|---|
Capability |
Capability being checked |
|
IPermissionAccessResponse[] |
Individual permission check responses. Used for observability |
|
Inherited | boolean |
Is the user allowed to perform the action |
Inherited | string |
Code for the access response. Used for i18n and UX level messages |
Inherited | PolicyResponse |
Reason for the access response |
Optional Inherited | string |
Message with details access response. Typically used to return additional information about assertion failures |
Function defined in common/src/capabilities/_internal/checkCapabilityAccess.ts:13