UNPKG

payload-gatekeeper

Version:

The ultimate access control gatekeeper for Payload CMS v3 - Advanced RBAC with wildcard support, auto role assignment, and flexible configuration

11 lines 554 B
import type { CollectionAfterChangeHook } from 'payload'; import type { CollectionPermissionConfig } from '../types'; /** * AfterChange hook that handles automatic role assignment * * This hook runs after user creation and: * - Assigns super admin role to first user if autoAssignFirstUser is true * - Assigns default role to new users if defaultRole is configured */ export declare const createAfterChangeHook: (collectionSlug: string, config: CollectionPermissionConfig) => CollectionAfterChangeHook; //# sourceMappingURL=afterChangeHook.d.ts.map