UNPKG

payload-gatekeeper

Version:

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

42 lines 1.17 kB
import type { SystemRole } from './types'; /** * Essential system role - always created by the plugin * This is the only hardcoded role as it's required for the system to function */ export declare const SUPER_ADMIN_ROLE: SystemRole; /** * Public role for non-authenticated users * This role is automatically applied when no user is logged in */ export declare const PUBLIC_ROLE: SystemRole; /** * Example role configurations that can be used in the plugin config * These are NOT automatically created - they must be explicitly configured */ export declare const EXAMPLE_ROLES: { admin: { name: string; label: string; permissions: string[]; protected: boolean; active: boolean; description: string; }; editor: { name: string; label: string; permissions: string[]; protected: boolean; active: boolean; description: string; }; user: { name: string; label: string; permissions: string[]; protected: boolean; active: boolean; description: string; }; }; //# sourceMappingURL=defaultRoles.d.ts.map