Этот коммит содержится в:
=Corey Hulen
2015-09-21 20:38:31 -07:00
родитель e78c79b832
Коммит afcff9b301
7 изменённых файлов: 75 добавлений и 86 удалений

Просмотреть файл

@@ -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
}