Skip to main content

Module: core/policy

Interfaces

Functions

checkPolicy

checkPolicy(policies, input): boolean

Returns true if allowed

Parameters

NameType
policiesPick<Policy, "statement">[]
inputObject
input.actionstring
input.resourcestring
input.uid?string
input.getter?(property: "subject" | "sender" | "author") => undefined | string

Returns

boolean


collect

collect<T>(obj): T[]

Type parameters

Name
T

Parameters

NameType
objT | T[]

Returns

T[]