Closed pot-code closed 1 year ago
@tangyang9464 @JalinWang @imp2002
@PokIsemaine
In casbin.NewEnforcer()
contains an automatic LoadPolicy
.
The order of calls is as follows, which you can see using the IDE's debugger
@pot-code use enforcer, _ := casbin.NewEnforcer()
to create an enforcer without implicit LoadPolicy()
call, see example at: https://casbin.org/docs/policy-subset-loading
constructor function:
logs(zerolog adapted):
if I delete
e.LoadPolicy()
, the sql will only print once