mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
setupSimpleDatabase runs once per configured database - one per host in the multi-tenant configuration - and passed the same empty key to mycasbin.Setup every time. Setup caches per key, so every host after the first was handed the enforcer built from the first host's database and was authorized against a casbin_rule table that was not its own. Takes effect with the go-admin-core release that keys the cache; before it, Setup ignored the argument entirely.