feat(config): add service.enablebotusers flag

This commit is contained in:
kolaente 2026-04-05 19:45:51 +02:00 committed by kolaente
parent 3d75ca049b
commit 4c3f0231e9
2 changed files with 7 additions and 0 deletions

View File

@ -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",

View File

@ -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)