unprotectModel

Function

Given a model, determine if it is protected, and unprotect it if it is. Otherwise, just resolve with the same result.

  • unprotectModel(model: IModel, requestOptions: IRequestOptions) : Promise<{
    success:
    boolean
    }>

Parameters

Parameter Type Default Notes
model Required IModel

Model Object

requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

Promise<{
success:
boolean
}>

Function defined in common/src/items/unprotect-model.ts:11