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

I have just started exploring casbin... Is there a way we can pass multiple models and policies to enforcer?

import casbin

e = casbin.Enforcer("path/to/model.conf", "path/to/policy.csv")

Something like this

e = casbin.Enforcer("path/to/model.conf", "path/to/model.conf1", "path/to/policy.csv", "path/to/policy1.csv") OR some other mechanism to combine model and policy dynamically.

1views
2users
1 minread
1 / 2
Nov 2023