Release
Mar 11, 2026
Introducing Role-Based Publishing in Flint
By Flint Core Team
Role-based publishing lets you define who can create or publish content. In Flint, you can implement this by attaching a middleware that checks the authenticated user role against an allowlist. This pattern keeps your authoring routes safe while keeping read access public.
Start by adding a role column on users, then create a RoleGuard middleware that rejects requests without the required role. Apply it to post creation routes and you have a simple, effective permissions system.
Comments
2 totalWow
hellkjsd