[MM-63618] add abac settings (#30602)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
545de88486
Коммит
5c5aa06fea
@@ -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
|
type ConfigFunc func() *Config
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -3745,6 +3760,7 @@ type Config struct {
|
|||||||
ExportSettings ExportSettings
|
ExportSettings ExportSettings
|
||||||
WranglerSettings WranglerSettings
|
WranglerSettings WranglerSettings
|
||||||
ConnectedWorkspacesSettings ConnectedWorkspacesSettings
|
ConnectedWorkspacesSettings ConnectedWorkspacesSettings
|
||||||
|
AccessControlSettings AccessControlSettings
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Config) Auditable() map[string]any {
|
func (o *Config) Auditable() map[string]any {
|
||||||
@@ -3862,6 +3878,7 @@ func (o *Config) SetDefaults() {
|
|||||||
o.ExportSettings.SetDefaults()
|
o.ExportSettings.SetDefaults()
|
||||||
o.WranglerSettings.SetDefaults()
|
o.WranglerSettings.SetDefaults()
|
||||||
o.ConnectedWorkspacesSettings.SetDefaults(isUpdate, o.ExperimentalSettings)
|
o.ConnectedWorkspacesSettings.SetDefaults(isUpdate, o.ExperimentalSettings)
|
||||||
|
o.AccessControlSettings.SetDefaults()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (o *Config) IsValid() *AppError {
|
func (o *Config) IsValid() *AppError {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user