You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Load the policy rules from the .CSV file adapter.// Replace it with your adapter to avoid files.a:=fileadapter.NewAdapter("examples/rbac_policy.csv")
// Create the enforcer.e:=casbin.NewEnforcer(m, a)
This is wrong:
a := model.NewModelFromString("examples/rbac_policy.csv")
and:
e := casbin.NewEnforcer(m, a)
The text was updated successfully, but these errors were encountered:
In: https://casbin.org/docs/en/model-storage#load-model-from-string
This is wrong:
a := model.NewModelFromString("examples/rbac_policy.csv")
and:
e := casbin.NewEnforcer(m, a)
The text was updated successfully, but these errors were encountered: