Skip to main content

checkOperationPermission

@webda/core


Function: checkOperationPermission()

checkOperationPermission(context, operationId, operation?): boolean

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

Check if an operation can be executed with the current context Not checking the input use checkOperation instead to check everything

Parameters​

context​

OperationContext

the execution context

operationId​

string

the operation identifier

operation?​

OperationDefinition & object = ...

the operation definition

Returns​

boolean

true if operation can be executed

Throws​

OperationError if operation is unknown