Skip to main content
Version: 2.0.0-alpha

Type alias: PermissionsBuilder<M, UserType>

Ƭ PermissionsBuilder<M, UserType>: ({ pathSegments, user, collection, authController }: PermissionsBuilderProps<M, UserType>) => Permissions

Type parameters

NameType
Mextends Record<string, any> = any
UserTypeextends User = User

Type declaration

▸ ({ pathSegments, user, collection, authController }): Permissions

Builder used to assign permissions to entities, based on the logged user or collection.

Parameters
NameType

| { pathSegments, user, collection, authController } | PermissionsBuilderProps<M, UserType> |

Returns

Permissions

Defined in

lib/src/types/permissions.ts:70

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch