mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-16 05:36:36 +08:00
修复服务访问控制页面可能空白的问题
This commit is contained in:
@@ -36,6 +36,7 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
allTypes = append(allTypes, def.Code)
|
allTypes = append(allTypes, def.Code)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if webConfig.Auth != nil {
|
||||||
var refs = webConfig.Auth.PolicyRefs
|
var refs = webConfig.Auth.PolicyRefs
|
||||||
var realRefs = []*serverconfigs.HTTPAuthPolicyRef{}
|
var realRefs = []*serverconfigs.HTTPAuthPolicyRef{}
|
||||||
for _, ref := range refs {
|
for _, ref := range refs {
|
||||||
@@ -48,6 +49,7 @@ func (this *IndexAction) RunGet(params struct {
|
|||||||
realRefs = append(realRefs, ref)
|
realRefs = append(realRefs, ref)
|
||||||
}
|
}
|
||||||
webConfig.Auth.PolicyRefs = realRefs
|
webConfig.Auth.PolicyRefs = realRefs
|
||||||
|
}
|
||||||
|
|
||||||
this.Data["authConfig"] = webConfig.Auth
|
this.Data["authConfig"] = webConfig.Auth
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user