Interface: PermissionsBuilderProps<EC, UserType, M>
Props passed to a PermissionsBuilder
Type parameters​
Name | Type |
---|---|
EC | extends EntityCollection = EntityCollection |
UserType | extends User = User |
M | extends object = InferCollectionType <EC > |
Properties​
authController​
• authController: AuthController
<UserType
>
Auth controller
Defined in​
packages/firecms/src/types/permissions.ts:62
collection​
• collection: EC
Collection these permissions apply to
Defined in​
packages/firecms/src/types/permissions.ts:57
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.
Defined in​
packages/firecms/src/types/permissions.ts:42
pathSegments​
• pathSegments: string
[]
Path segments of the collection e.g. ['products', 'locales']
Defined in​
packages/firecms/src/types/permissions.ts:47
user​
• user: null
| UserType
Logged in user