Type Alias: PermissionsBuilder()<EC, USER, M>
PermissionsBuilder<
EC
,USER
,M
>: ({ pathSegments, user, collection, authController }
) =>Permissions
|undefined
Builder used to assign permissions to entities, based on the logged user or collection.
Type Parameters​
• EC extends EntityCollection
= EntityCollection
• M extends object
= InferCollectionType
<EC
>
Parameters​
• {
pathSegments,
user,
collection,
authController
}: PermissionsBuilderProps
<EC
, USER
, M
>
Returns​
Permissions
| undefined