BeechCMS / @beechcms/core / resolveOperationRisk
Function: resolveOperationRisk()
resolveOperationRisk(
operation,input):OperationRisk
Resolves the effective risk of an agent operation for one request.
Parameters
operation
An agent entry of OPERATION_CATALOG.
input
The request query and parsed JSON body (undefined when absent).
Returns
The static risk as is, or the result of the operation's request-dependent rule.