minca
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

ParameterTypeDefault value
grantSpaceGrantundefined
cmdstringundefined
argsunknownundefined
opaque?booleanfalse

Returns

boolean

On this page