Module: core/policy
Interfaces
Functions
checkPolicy
▸ checkPolicy(policies, input): boolean
Returns true if allowed
Parameters
| Name | Type |
|---|---|
policies | Pick<Policy, "statement">[] |
input | Object |
input.action | string |
input.resource | string |
input.uid? | string |
input.getter? | (property: "subject" | "sender" | "author") => undefined | string |
Returns
boolean
collect
▸ collect<T>(obj): T[]
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
obj | T | T[] |
Returns
T[]