鉴权调整
This commit is contained in:
parent
3f06fb0e09
commit
273ba1f53f
|
@ -4,7 +4,6 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"fusenapi/model/gmodel"
|
"fusenapi/model/gmodel"
|
||||||
"fusenapi/utils/basic"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
@ -111,7 +110,7 @@ func (l *Ldap) VerifyAuthorityGroup(r *http.Request, options ...LdapOptions) boo
|
||||||
if infoLdapGroup.Metadata != nil {
|
if infoLdapGroup.Metadata != nil {
|
||||||
err := json.Unmarshal(*infoLdapGroup.Metadata, &metadata)
|
err := json.Unmarshal(*infoLdapGroup.Metadata, &metadata)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
basic.CodeServiceErr.Message = "系统出错"
|
logx.Error("系统出错", err)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
getAllApis(metadata, &apiMaps)
|
getAllApis(metadata, &apiMaps)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user