Browse Source

Merge pull request #484 from flipped-aurora/gva_gormv2_dev

修复map竞争问题
main
奇淼(piexlmax 4 years ago
committed by GitHub
parent
commit
92f6d66253
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      server/service/sys_casbin.go

2
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()
})
return e
}

Loading…
Cancel
Save