feat(capabilities): notification toggle

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2025-01-07 16:05:09 +01:00
parent c314e71c05
commit 538cf7275f
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -58,6 +58,8 @@ type Config struct {
PasswordPolicy PasswordPolicy `yaml:"password_policy"`
ConfigurableNotifications bool `yaml:"configurable_notifications" env:"FRONTEND_CONFIGURABLE_NOTIFICATIONS" desc:"Allow configuring notifications via web client." introductionVersion:"7.1"`
Context context.Context `yaml:"-"`
}
+2 -1
View File
@@ -333,7 +333,8 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
},
"password_policy": passwordPolicyCfg,
"notifications": map[string]interface{}{
"endpoints": []string{"list", "get", "delete"},
"endpoints": []string{"list", "get", "delete"},
"configurable": cfg.ConfigurableNotifications,
},
},
"version": map[string]interface{}{