ApiCoreFunctions
Function: may()
function may(
state,
did,
cmd,
args,
options?
): boolean;Defined in: packages/core/src/space/roles.ts:469
Whether an account may invoke a command with these arguments in a state: a founder may invoke anything; anyone else, what a role assigned to it holds, each definition only as far as its author could invoke it (UCAN's attenuation), with what the roles it nests hold.
Parameters
| Parameter | Type |
|---|---|
state | AccessState |
did | string |
cmd | string |
args | unknown |
options? | MayOptions |
Returns
boolean