mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-10 18:07:42 +01:00
Merge pull request #4016 from reasonerjt/enable-edit-uaa
Enable user to edit UAA settings on UI
This commit is contained in:
commit
083b924829
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user