feat: move allow icon changes setting to api
This commit is contained in:
@ -62,6 +62,7 @@ const (
|
||||
ServiceEnableEmailReminders Key = `service.enableemailreminders`
|
||||
ServiceEnableUserDeletion Key = `service.enableuserdeletion`
|
||||
ServiceMaxAvatarSize Key = `service.maxavatarsize`
|
||||
ServiceAllowIconChanges Key = `service.allowiconchanges`
|
||||
|
||||
SentryEnabled Key = `sentry.enabled`
|
||||
SentryDsn Key = `sentry.dsn`
|
||||
@ -309,6 +310,7 @@ func InitDefaultConfig() {
|
||||
ServiceEnableUserDeletion.setDefault(true)
|
||||
ServiceMaxAvatarSize.setDefault(1024)
|
||||
ServiceDemoMode.setDefault(false)
|
||||
ServiceAllowIconChanges.setDefault(true)
|
||||
|
||||
// Sentry
|
||||
SentryDsn.setDefault("https://440eedc957d545a795c17bbaf477497c@o1047380.ingest.sentry.io/4504254983634944")
|
||||
|
@ -75,8 +75,11 @@ func serveIndexFile(c echo.Context, assetFs http.FileSystem) (err error) {
|
||||
data["SENTRY_ENABLED"] = "true"
|
||||
}
|
||||
data["SENTRY_DSN"] = config.SentryFrontendDsn.GetString()
|
||||
data["ALLOW_ICON_CHANGES"] = "true" // TODO
|
||||
data["CUSTOM_LOGO_URL"] = "" // TODO
|
||||
data["ALLOW_ICON_CHANGES"] = "false"
|
||||
if config.ServiceAllowIconChanges.GetBool() {
|
||||
data["ALLOW_ICON_CHANGES"] = "true"
|
||||
}
|
||||
data["CUSTOM_LOGO_URL"] = "" // TODO
|
||||
|
||||
err = tmpl.Execute(&tplOutput, data)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user