Skip to main content

PermissionsBuilderProps <EC, UserType, M>

Props passed to a PermissionsBuilder

Index

Properties

authController

authController: AuthController<UserType>

Auth controller

collection

collection: EC

Collection these permissions apply to

entity

entity: null | Entity<M>

Entity being edited, might be null in some cases, when the operation refers to the collection. For example, when deciding whether a user can create a new entity in a collection, the entity will be null.

path

path: string

Path of the collection e.g. 'products/12345/locales'

pathSegments

pathSegments: string[]

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

user

user: null | UserType

Logged in user

Sign up to our newsletter to get the latest news and updates. No spam!