鉴权调整

This commit is contained in:
momo 2023-11-27 18:17:59 +08:00
parent 273ba1f53f
commit 25c7c0a414

View File

@ -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
}
}
}