Skip to main content
Version: 2.0.0-alpha

Interface: PermissionsBuilderProps<M, UserType>

Props passed to a PermissionsBuilder

Type parameters

NameType
Mextends Object
UserTypeextends User = User

Properties

authController

authController: AuthController<UserType>

Auth controller

Defined in

lib/src/models/permissions.ts:54


collection

collection: EntityCollection<M, string, User>

Collection these permissions apply to

Defined in

lib/src/models/permissions.ts:49


pathSegments

pathSegments: string[]

Path segments of the collection e.g. ['products', 'locales']

Defined in

lib/src/models/permissions.ts:39


user

user: null | UserType

Logged in user

Defined in

lib/src/models/permissions.ts:44