Browse Source
Merge pull request #484 from flipped-aurora/gva_gormv2_dev
修复map竞争问题
main
奇淼(piexlmax
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
server/service/sys_casbin.go
|
|
@ -100,8 +100,8 @@ func Casbin() *casbin.Enforcer { |
|
|
|
a, _ := gormadapter.NewAdapterByDB(global.GVA_DB) |
|
|
|
e, _ = casbin.NewEnforcer(global.GVA_CONFIG.Casbin.ModelPath, a) |
|
|
|
e.AddFunction("ParamsMatch", ParamsMatchFunc) |
|
|
|
_ = e.LoadPolicy() |
|
|
|
}) |
|
|
|
_ = e.LoadPolicy() |
|
|
|
return e |
|
|
|
} |
|
|
|
|
|
|
|