Add configurable history and storage retention policies
This commit is contained in:
@@ -29,6 +29,7 @@ export function routePermission(routeId: string | null, method: string): RoutePe
|
||||
|| within(routeId, '/api/server-keys') || within(routeId, '/server-keys') || within(routeId, '/keys')) return 'admin';
|
||||
|
||||
if (!reading && ['/api/hosts', '/api/settings', '/api/game-files'].some(base => within(routeId, base))) return 'admin';
|
||||
if (within(routeId, '/api/settings/retention')) return 'admin';
|
||||
if (routeId === '/api/provisioning/[id]/override') return 'admin';
|
||||
// These endpoints mix operational actions with global policy and schedule
|
||||
// changes. Per-incident/job actions remain available to operators.
|
||||
|
||||
Reference in New Issue
Block a user