Skip to content

IAccessInfo

Defined in: src/types/IAccessInfo.ts:10

An interface that defines an access information to be granted or denied. When you start a method chain with AccessControl#grant or AccessControl#deny methods, you’re actually building this object which will eventually be committed to the underlying grants model.

optional role?: string | string[]

Defined in: src/types/IAccessInfo.ts:14

Indicates a single or multiple roles for this access information.


optional resource?: string | string[]

Defined in: src/types/IAccessInfo.ts:19

Indicates a single or multiple target resources for this access information.


optional attributes?: string | string[]

Defined in: src/types/IAccessInfo.ts:24

Defines the resource attributes which are granted. If denied, this will default to an empty array.


optional action?: string

Defined in: src/types/IAccessInfo.ts:29

Defines the type of the operation that is (or not) to be performed on the resource(s) by the defined role(s).


optional possession?: Possession

Defined in: src/types/IAccessInfo.ts:34

Defines the possession of the resource(s) for the specified action. for possible values.


optional condition?: ConditionJSON

Defined in: src/types/IAccessInfo.ts:38

Optional declarative condition attached to this grant.