Skip to content

Commit 538cf72

Browse files
committed
feat(capabilities): notification toggle
Signed-off-by: jkoberg <jkoberg@owncloud.com>
1 parent c314e71 commit 538cf72

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

services/frontend/pkg/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ type Config struct {
5858

5959
PasswordPolicy PasswordPolicy `yaml:"password_policy"`
6060

61+
ConfigurableNotifications bool `yaml:"configurable_notifications" env:"FRONTEND_CONFIGURABLE_NOTIFICATIONS" desc:"Allow configuring notifications via web client." introductionVersion:"7.1"`
62+
6163
Context context.Context `yaml:"-"`
6264
}
6365

services/frontend/pkg/revaconfig/config.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,8 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
333333
},
334334
"password_policy": passwordPolicyCfg,
335335
"notifications": map[string]interface{}{
336-
"endpoints": []string{"list", "get", "delete"},
336+
"endpoints": []string{"list", "get", "delete"},
337+
"configurable": cfg.ConfigurableNotifications,
337338
},
338339
},
339340
"version": map[string]interface{}{

services/settings/pkg/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Config struct {
3838
ServiceAccountIDs []string `yaml:"service_account_ids" env:"SETTINGS_SERVICE_ACCOUNT_IDS;OCIS_SERVICE_ACCOUNT_ID" desc:"The list of all service account IDs. These will be assigned the hidden 'service-account' role. Note: When using 'OCIS_SERVICE_ACCOUNT_ID' this will contain only one value while 'SETTINGS_SERVICE_ACCOUNT_IDS' can have multiple. See the 'auth-service' service description for more details about service accounts." introductionVersion:"5.0"`
3939

4040
DefaultLanguage string `yaml:"default_language" env:"OCIS_DEFAULT_LANGUAGE" desc:"The default language used by services and the WebUI. If not defined, English will be used as default. See the documentation for more details." introductionVersion:"5.0"`
41-
TranslationPath string `yaml:"translation_path" env:"OCIS_TRANSLATION_PATH;SETTINGS_TRANSLATION_PATH" desc:"(optional) Set this to a path with custom translations to overwrite the builtin translations. Note that file and folder naming rules apply, see the documentation for more details." introductionVersion:"7.0"`
41+
TranslationPath string `yaml:"translation_path" env:"OCIS_TRANSLATION_PATH;SETTINGS_TRANSLATION_PATH" desc:"(optional) Set this to a path with custom translations to overwrite the builtin translations. Note that file and folder naming rules apply, see the documentation for more details." introductionVersion:"7.1"`
4242

4343
Context context.Context `yaml:"-"`
4444
}

0 commit comments

Comments
 (0)