From 4c3f0231e9d1de51b642ca1e21e9b44b02c47a7b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 5 Apr 2026 19:45:51 +0200 Subject: [PATCH] feat(config): add service.enablebotusers flag --- config-raw.json | 5 +++++ pkg/config/config.go | 2 ++ 2 files changed, 7 insertions(+) diff --git a/config-raw.json b/config-raw.json index dd395b768..c49239e6b 100644 --- a/config-raw.json +++ b/config-raw.json @@ -113,6 +113,11 @@ "default_value": "true", "comment": "If true, will allow users to request the complete deletion of their account. When using external authentication methods\nit may be required to coordinate with them in order to delete the account. This setting will not affect the cli commands\nfor user deletion." }, + { + "key": "enablebotusers", + "default_value": "true", + "comment": "If enabled (default), users can create bot users that interact with Vikunja via the API only. Set to false to disable the feature entirely." + }, { "key": "maxavatarsize", "default_value": "1024", diff --git a/pkg/config/config.go b/pkg/config/config.go index 1941f7f0b..099c72e9c 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -64,6 +64,7 @@ const ( ServiceTestingtoken Key = `service.testingtoken` ServiceEnableEmailReminders Key = `service.enableemailreminders` ServiceEnableUserDeletion Key = `service.enableuserdeletion` + ServiceEnableBotUsers Key = `service.enablebotusers` ServiceMaxAvatarSize Key = `service.maxavatarsize` ServiceAllowIconChanges Key = `service.allowiconchanges` ServiceCustomLogoURL Key = `service.customlogourl` @@ -360,6 +361,7 @@ func InitDefaultConfig() { ServiceEnableTotp.setDefault(true) ServiceEnableEmailReminders.setDefault(true) ServiceEnableUserDeletion.setDefault(true) + ServiceEnableBotUsers.setDefault(true) ServiceMaxAvatarSize.setDefault(1024) ServiceDemoMode.setDefault(false) ServiceAllowIconChanges.setDefault(true)