addPermissionPolicy

Function

Add a policy to an array of entity policies Returns a new array

Parameters

Parameter Type Default Notes
permissions Optional IEntityPermissionPolicy[] []
policy Required IEntityPermissionPolicy

Returns


Function defined in common/src/permissions/utils.ts:11