feat(frontend): add server managed spaces capability
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
This commit is contained in:
1 parent
0f5eb0fb7a
commit
4c529c8ff0
3 files changed
+13
-5
No files matched your search
@@ -0,0 +1,5 @@
|
||||
Enhancement: Add capability for server managed spaces
|
||||
|
||||
Adds the capability for server managed spaces, which will deactivate adding/removing users to/from spaces in the web UI.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11332
|
||||
@@ -61,6 +61,8 @@ type Config struct {
|
||||
|
||||
ConfigurableNotifications bool `yaml:"configurable_notifications" env:"FRONTEND_CONFIGURABLE_NOTIFICATIONS" desc:"Allow configuring notifications via web client." introductionVersion:"7.1"`
|
||||
|
||||
ServerManagedSpaces bool `yaml:"server_managed_spaces" env:"OCIS_CLAIM_MANAGED_SPACES_ENABLED" desc:"Block adding/removing users to spaces through the webUI." introductionVersion:"%%NEXT_PRODUCTION_VERSION%%"`
|
||||
|
||||
Context context.Context `yaml:"-"`
|
||||
}
|
||||
|
||||
|
||||
@@ -294,11 +294,12 @@ func FrontendConfigFromStruct(cfg *config.Config, logger log.Logger) (map[string
|
||||
},
|
||||
},
|
||||
"spaces": map[string]interface{}{
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"projects": true,
|
||||
"share_jail": true,
|
||||
"max_quota": cfg.MaxQuota,
|
||||
"version": "1.0.0",
|
||||
"enabled": true,
|
||||
"projects": true,
|
||||
"share_jail": true,
|
||||
"max_quota": cfg.MaxQuota,
|
||||
"server_managed": cfg.ServerManagedSpaces,
|
||||
},
|
||||
"theme": capabilities.Default().Theme,
|
||||
"search": map[string]interface{}{
|
||||
|
||||
Reference in new issue
Block a user