Function: Protect()
Protect(
classACL?,recordACL?): (target) =>void
Defined in: service-core/src/decorators/ModelDecorators.ts:127
Apply this to a model class to indicate that it should be protected by the AccessControlList security system.
The classACL parameter specifies the default ACL governing access to general operations against the model class
(e.g. create, truncate, find). The recordACL parameter indicates whether or not per-record ACLs should be created
for this type in order to govern access to individual record operations (e.g. delete, update, find).
Parameters
classACL?
PartialACL = ...
The default access control list to limit access to general class operations.
recordACL?
boolean = false
Set to true to create an ACL for each new record of the given type, otherwise set to false. Default
is false.
Returns
(target) => void