feat: add enterprise Phase 1-4 feature flags and new permissions

This commit is contained in:
SnapOtter
2026-06-13 16:20:24 +08:00
parent cafd2d8b65
commit 86d6f50ea6
6 changed files with 70 additions and 3 deletions
+3
View File
@@ -20,6 +20,9 @@ const ROLE_PERMISSIONS: Record<Role, Permission[]> = {
"features:manage",
"system:health",
"audit:read",
"compliance:manage",
"webhooks:manage",
"security:manage",
],
editor: [
"tools:use",
+3
View File
@@ -211,6 +211,9 @@ export async function ensureBuiltinRoles(): Promise<void> {
"features:manage",
"system:health",
"audit:read",
"compliance:manage",
"webhooks:manage",
"security:manage",
],
isBuiltin: true,
},