diff --git a/server/public/model/config.go b/server/public/model/config.go index 814f5c31ac4..47af9775fc2 100644 --- a/server/public/model/config.go +++ b/server/public/model/config.go @@ -3653,6 +3653,21 @@ func (s *ExportSettings) SetDefaults() { } } +type AccessControlSettings struct { + EnableAttributeBasedAccessControl *bool `access:"write_restrictable,cloud_restrictable"` + EnableChannelScopeAccessControl *bool `access:"cloud_restrictable"` +} + +func (s *AccessControlSettings) SetDefaults() { + if s.EnableAttributeBasedAccessControl == nil { + s.EnableAttributeBasedAccessControl = NewPointer(false) + } + + if s.EnableChannelScopeAccessControl == nil { + s.EnableChannelScopeAccessControl = NewPointer(false) + } +} + type ConfigFunc func() *Config const ( @@ -3745,6 +3760,7 @@ type Config struct { ExportSettings ExportSettings WranglerSettings WranglerSettings ConnectedWorkspacesSettings ConnectedWorkspacesSettings + AccessControlSettings AccessControlSettings } func (o *Config) Auditable() map[string]any { @@ -3862,6 +3878,7 @@ func (o *Config) SetDefaults() { o.ExportSettings.SetDefaults() o.WranglerSettings.SetDefaults() o.ConnectedWorkspacesSettings.SetDefaults(isUpdate, o.ExperimentalSettings) + o.AccessControlSettings.SetDefaults() } func (o *Config) IsValid() *AppError {