applyPermissionsFunctionIfEmpty
Questi contenuti non sono ancora disponibili nella tua lingua.
@firecms/core / applyPermissionsFunctionIfEmpty
Function: applyPermissionsFunctionIfEmpty()
Section titled “Function: applyPermissionsFunctionIfEmpty()”applyPermissionsFunctionIfEmpty(
collections,permissionsBuilder?):EntityCollection<any,any>[]
Defined in: util/collections.ts:61
If a collection is not applying permissions, we apply the given permissionsBuilder. This is used to apply the role permissions to the collections, unless they are already applying permissions.
Parameters
Section titled “Parameters”collections
Section titled “collections”EntityCollection<any, any>[]
permissionsBuilder?
Section titled “permissionsBuilder?”PermissionsBuilder<any, any>
Returns
Section titled “Returns”EntityCollection<any, any>[]