Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Submitted the PR. I added a refactor for Enforcer creation, current function is pretty ugly. Feel free to suggest edits

Hi, I noticed there is no way to provide a custom logger to the casbin enforcer other than redefining a casbin.log.Logger completely, as the casbin DefaultLogger always uses the default Logger from std lib. Would a PR on being able to pass a log.Logger to the DefaultLogger (and use the std lib if no Logger is provided) and use it be accepted ?

yeah did that, but the explanation fell very short of the actual answer

Ok so I've understood my mistake. The sub_rule acts as a filter to whom this rule will be applied to. In my case, age 10 falls out of the filter, so no rules are applied, so it returns true

Hello,
maybe it's something that I don't quite grasp around casbin config, but shouldn't this return false ? Since we have a deny rule ?

image.png