Closed gurbaj5124871 closed 2 years ago
@tangyang9464 @JalinWang @imp2002 please review
@pckhoi @huazhikui bumping up to see any input on this pr
:tada: This PR is included in version 3.13.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Why
We use casbin filtered adapter on closured level i.e new adapter created on every request instead on global level so that only relevant policies are loaded on every request. But creating a new gorm connection on every request would be not optimised. Hence wanted to expose a new filtered adapter which accepts existing gorm instance.