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 Object
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/models/permissions.ts:62