Check if a capability is enabled for a given entity and if the current user has necessary permissions to access it


Parameter Type Default Notes
capability Required Capability
context Required IArcGISContext
entity Required IHubItemEntity | HubEntity


Property Type Notes
capability Capability

Capability being checked

responses IPermissionAccessResponse[]

Individual permission check responses. Used for observability

access Inherited boolean

Is the user allowed to perform the action

code Inherited string

Code for the access response. Used for i18n and UX level messages

response Inherited PolicyResponse

Reason for the access response

message Optional Inherited string

Message with details access response. Typically used to return additional information about assertion failures

Function defined in common/src/capabilities/checkCapability.ts:24