Skip to main content

canCallOperation

@webda/core


Function: canCallOperation()

canCallOperation(context, operationId): boolean

Defined in: packages/core/src/core/operations.ts:54

Check whether the context's session is allowed to call an operation

Unlike checkOperation, this never throws: unknown operations and permission queries that cannot be evaluated return false.

Parameters​

context​

OperationContext

the execution context holding the session

operationId​

string

the operation identifier

Returns​

boolean

true if the operation exists and its permission (if any) accepts the session