IWithPermissions

Interface

Adds permissions property to an entity

Properties

Property Type Notes
features Optional IFeatureFlags

We need a means to enable / disable the "feature/capability" represented by a permission for an entity. e.g. we want to disable events for a site, so we have hub:site:events: false

permissions Optional IEntityPermissionPolicy[]

Array of permission policies that apply to the entity Only permissions with `entity


Interface defined in common/src/core/traits/IWithPermissions.ts:6