Skip to main content

checkModelReparent

@webda/core


Function: checkModelReparent()

checkModelReparent(model, object, input, context): Promise<void>

Defined in: packages/core/src/models/permissions.ts:257

When an update moves an object to another parent, the caller must be able to read the new parent

Parameters​

model​

any

the model class

object​

any

the stored object

input​

any

the sanitized update input

context​

IOperationContext

the caller context

Returns​

Promise<void>