This reverts commit 3fcecd521a.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
daa6c4172a
Коммит
2999009052
@@ -979,21 +979,6 @@ func (s *EmailSettings) SetDefaults() {
|
||||
}
|
||||
}
|
||||
|
||||
type ExtensionSettings struct {
|
||||
EnableExperimentalExtensions *bool
|
||||
AllowedExtensionsIDs []string
|
||||
}
|
||||
|
||||
func (s *ExtensionSettings) SetDefaults() {
|
||||
if s.EnableExperimentalExtensions == nil {
|
||||
s.EnableExperimentalExtensions = NewBool(false)
|
||||
}
|
||||
|
||||
if s.AllowedExtensionsIDs == nil {
|
||||
s.AllowedExtensionsIDs = []string{}
|
||||
}
|
||||
}
|
||||
|
||||
type RateLimitSettings struct {
|
||||
Enable *bool
|
||||
PerSec *int
|
||||
@@ -1933,7 +1918,6 @@ type Config struct {
|
||||
PasswordSettings PasswordSettings
|
||||
FileSettings FileSettings
|
||||
EmailSettings EmailSettings
|
||||
ExtensionSettings ExtensionSettings
|
||||
RateLimitSettings RateLimitSettings
|
||||
PrivacySettings PrivacySettings
|
||||
SupportSettings SupportSettings
|
||||
@@ -2029,7 +2013,6 @@ func (o *Config) SetDefaults() {
|
||||
o.MessageExportSettings.SetDefaults()
|
||||
o.TimezoneSettings.SetDefaults()
|
||||
o.DisplaySettings.SetDefaults()
|
||||
o.ExtensionSettings.SetDefaults()
|
||||
}
|
||||
|
||||
func (o *Config) IsValid() *AppError {
|
||||
|
||||
@@ -17,7 +17,6 @@ const (
|
||||
OAUTH_ACTION_EMAIL_TO_SSO = "email_to_sso"
|
||||
OAUTH_ACTION_SSO_TO_EMAIL = "sso_to_email"
|
||||
OAUTH_ACTION_MOBILE = "mobile"
|
||||
OAUTH_ACTION_CLIENT = "client"
|
||||
)
|
||||
|
||||
type OAuthApp struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user