checkPermission

Function

Check if the user has a specific permission in the context of an entity

Parameters

Parameter Type Default Notes
permission Required HubPermission
user Required IUser
permissions Required IHubPermission[]

Returns

boolean

Function defined in common/src/core/behaviors/IWithPermissionBehavior.ts:21