Skip to main content
Version: 3.0.0-beta

Function: applyPermissionsFunctionIfEmpty()

applyPermissionsFunctionIfEmpty(collections, permissionsBuilder?): EntityCollection<any, any>[]

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​

• collections: EntityCollection<any, any>[]

• permissionsBuilder?: PermissionsBuilder<any, any>

Returns​

EntityCollection<any, any>[]

Defined in​

packages/firecms_core/src/util/collections.ts:61

Sign up to our newsletter to get the latest news and updates. No spam!