Skip to content

applyPermissionsFunctionIfEmpty

@firecms/core


@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.

EntityCollection<any, any>[]

PermissionsBuilder<any, any>

EntityCollection<any, any>[]