Enable user to edit UAA settings on UI

This commit is contained in:
Tan Jiang 2018-01-12 18:54:44 +08:00
parent a214084370
commit bc1366c3e5

View File

@ -337,12 +337,7 @@ func convertForGet(cfg map[string]interface{}) (map[string]*value, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
//All configuration of UAA will be un-editable for PKS 1.0 (1.4) result[common.AUTHMode].Editable = flag
result[common.AUTHMode].Editable = flag && result[common.AUTHMode].Value.(string) != common.UAAAuth
result[common.UAAEndpoint].Editable = false
// result[common.UAAClientSecret].Editable = false
result[common.UAAVerifyCert].Editable = false
result[common.UAAClientID].Editable = false
return result, nil return result, nil
} }