ApiCoreFunctions
Function: grantFits()
function grantFits(
grant,
cmd,
args,
opaque?
): boolean;Defined in: packages/core/src/space/grants.ts:206
Whether a grant lets its holder invoke cmd with args: its command
covers it and its policy holds. With opaque, the invocation's body could
not be read here: a policy that reads .body and finds no data is left to
those who can read it, and counts as holding.
Parameters
| Parameter | Type | Default value |
|---|---|---|
grant | SpaceGrant | undefined |
cmd | string | undefined |
args | unknown | undefined |
opaque? | boolean | false |
Returns
boolean