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
>[]