canCallOperation
Function: canCallOperation()
canCallOperation(
context,operationId,options?):Promise<boolean>
Defined in: packages/core/src/core/operations.ts:214
Check whether the context is allowed to call an operation: the session permission, MFA freshness then the authorizers
Unlike checkOperation, this never throws: unknown operations, refusals and errors return false. See probeOperation to tell the refusal reasons apart.
Parameters
context
the execution context holding the session
operationId
string
the operation identifier
options?
the operation input for an exact check
input?
any
the operation input
Returns
Promise<boolean>
true if the operation exists and is allowed