Merge pull request #4016 from reasonerjt/enable-edit-uaa

Enable user to edit UAA settings on UI
This commit is contained in:
Daniel Jiang 2018-01-15 11:00:52 +08:00 committed by GitHub
commit 083b924829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,12 +337,7 @@ func convertForGet(cfg map[string]interface{}) (map[string]*value, error) {
if err != nil {
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].Value.(string) != common.UAAAuth
result[common.UAAEndpoint].Editable = false
// result[common.UAAClientSecret].Editable = false
result[common.UAAVerifyCert].Editable = false
result[common.UAAClientID].Editable = false
result[common.AUTHMode].Editable = flag
return result, nil
}