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