checkOperationPermission
Function: checkOperationPermission()
checkOperationPermission(
context,operationId,operation?):boolean
Defined in: packages/core/src/core/operations.ts:55
Check if an operation can be executed with the current context
Not checking the input use checkOperation instead to check everything
The system (useSystem(), runAsSystem) passes the operation permission query; the authorizers still apply
Parameters
context
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