isModelActionAllowed
Function: isModelActionAllowed()
isModelActionAllowed(
object,context,action,model?):Promise<boolean>
Defined in: packages/core/src/models/permissions.ts:171
Whether the current caller may perform action on a model instance (see checkModelPermission); it never
throws
Parameters
object
any
the model instance
context
the caller context
action
string
the action name
model?
any
the model class (defaults to the object's class)
Returns
Promise<boolean>
true when allowed