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