Fixing unit tests
Этот коммит содержится в:
@@ -183,7 +183,7 @@ func getClientProperties(c *model.Config) map[string]string {
|
||||
props["AllowSignUpWithEmail"] = strconv.FormatBool(c.EmailSettings.AllowSignUpWithEmail)
|
||||
props["FeedbackEmail"] = c.EmailSettings.FeedbackEmail
|
||||
|
||||
props["AllowSignUpWithGitLab"] = strconv.FormatBool(false)
|
||||
props["AllowSignUpWithGitLab"] = strconv.FormatBool(c.GitLabSSOSettings.Allow)
|
||||
|
||||
props["ShowEmailAddress"] = strconv.FormatBool(c.PrivacySettings.ShowEmailAddress)
|
||||
props["AllowPublicLink"] = strconv.FormatBool(c.TeamSettings.AllowPublicLink)
|
||||
@@ -194,25 +194,3 @@ func getClientProperties(c *model.Config) map[string]string {
|
||||
|
||||
return props
|
||||
}
|
||||
|
||||
// func IsS3Configured() bool {
|
||||
// if Cfg.AWSSettings.AmazonS3AccessKeyId == "" || Cfg.AWSSettingsAmazonS3SecretAccessKey == "" || Cfg.AWSSettingsAmazonS3Region == "" || Cfg.AWSSettingsAmazonS3Bucket == "" {
|
||||
// return false
|
||||
// }
|
||||
|
||||
// return true
|
||||
// }
|
||||
|
||||
func IsServiceAllowed(s string) bool {
|
||||
if len(s) == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
if service, ok := Cfg.SSOSettings[s]; ok {
|
||||
if service.Allow {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user