External module "app/Security.test"
Type aliases
PermsMockConfig
PermsMockConfig: object
Type declaration
-
Optional entities?: Array<Permission<EntityPermissionValue>>
-
Optional entityAttributes?: Array<Permission<AttributePermissionValue>>
-
Optional specific?: Array<Permission<EntityPermissionValue>>
-
Optional undefinedPermissionPolicy?: "ALLOW" | "DENY"
Functions
createPerms
- createPerms(__namedParameters?: object): Promise<EffectivePermsInfo>
-
Parameters
-
Default value __namedParameters: object = {}
-
entities: undefined | Permission<0 | 1>[]
-
entityAttributes: undefined | Permission<0 | 1 | 2>[]
-
specific: undefined | Permission<0 | 1>[]
-
undefinedPermissionPolicy: undefined | "DENY" | "ALLOW"
Returns Promise<EffectivePermsInfo>
createSecurityWithLoadedPerms