mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: add enterprise Phase 1-4 feature flags and new permissions
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -211,6 +211,9 @@ export async function ensureBuiltinRoles(): Promise<void> {
|
||||
"features:manage",
|
||||
"system:health",
|
||||
"audit:read",
|
||||
"compliance:manage",
|
||||
"webhooks:manage",
|
||||
"security:manage",
|
||||
],
|
||||
isBuiltin: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user