payload-gatekeeper
Version:
The ultimate access control gatekeeper for Payload CMS v3 - Advanced RBAC with wildcard support, auto role assignment, and flexible configuration
20 lines • 838 B
TypeScript
import type { Plugin } from 'payload';
import type { GatekeeperOptions } from './types';
/**
* Payload Gatekeeper - The ultimate access control plugin for Payload CMS
*
* Features:
* - Automatic permission generation for all collections
* - Role-based access control
* - Wildcard permissions support
* - Super admin management
* - Audit logging (optional)
*
* Your collections' trusted guardian 🚪
*/
export declare const gatekeeperPlugin: (options?: GatekeeperOptions) => Plugin;
export { checkPermission, hasPermission, canAssignRole } from './utils/checkPermission';
export { PERMISSIONS } from './constants';
export { EXAMPLE_ROLES } from './defaultRoles';
export type { GatekeeperOptions, Permission, RoleDocument, CollectionPermissionConfig, SystemRole, SyncResults } from './types';
//# sourceMappingURL=index.d.ts.map