鉴权调整
This commit is contained in:
parent
273ba1f53f
commit
25c7c0a414
|
@ -128,10 +128,14 @@ func (l *Ldap) VerifyAuthorityGroup(r *http.Request, options ...LdapOptions) boo
|
||||||
func getAllApis(metadata []*GroupAuthMetadata, apiMaps *map[int64]string) {
|
func getAllApis(metadata []*GroupAuthMetadata, apiMaps *map[int64]string) {
|
||||||
apiMapsData := *apiMaps
|
apiMapsData := *apiMaps
|
||||||
for _, v := range metadata {
|
for _, v := range metadata {
|
||||||
if v.Type == "api" {
|
if v != nil {
|
||||||
apiMapsData[v.Id] = v.Name
|
if v.Type == "api" {
|
||||||
} else if v.Type == "group" {
|
apiMapsData[v.Id] = v.Name
|
||||||
getAllApis(v.Metadata, apiMaps)
|
} else if v.Type == "group" {
|
||||||
|
getAllApis(v.Metadata, apiMaps)
|
||||||
|
} else {
|
||||||
|
continue
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user