From e9529e3cb01ef72c4ee060622ff767adc0d9af5f Mon Sep 17 00:00:00 2001 From: orion Date: Sat, 4 Apr 2026 11:59:21 +0000 Subject: [PATCH] feat: add calendar role permissions --- app/init_wizard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/init_wizard.py b/app/init_wizard.py index 4724d78..1d094b1 100644 --- a/app/init_wizard.py +++ b/app/init_wizard.py @@ -132,6 +132,10 @@ DEFAULT_PERMISSIONS = [ # Monitor ("monitor.read", "View monitor", "monitor"), ("monitor.manage", "Manage monitor", "monitor"), + # Calendar + ("calendar.read", "View calendar slots and plans", "calendar"), + ("calendar.write", "Create and edit calendar slots and plans", "calendar"), + ("calendar.manage", "Manage calendar settings and workload policies", "calendar"), # Webhook ("webhook.manage", "Manage webhooks", "admin"), ] @@ -168,6 +172,7 @@ _MGR_PERMISSIONS = { "task.close", "task.reopen_closed", "task.reopen_completed", "propose.accept", "propose.reject", "propose.reopen", "monitor.read", + "calendar.read", "calendar.write", "calendar.manage", "user.reset-self-apikey", } @@ -178,6 +183,7 @@ _DEV_PERMISSIONS = { "milestone.read", "task.close", "task.reopen_closed", "task.reopen_completed", "monitor.read", + "calendar.read", "calendar.write", "user.reset-self-apikey", }