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

omg, had some crazy issue last night with a single unit test failing and I couldn't see why for ages. Turns out it was because I put a comment on the end of a policy line and Casbin interpreted is as part of the policy 🤦
The docs (https://casbin.org/docs/syntax-for-models/) say:

A model configuration (CONF) can contain comments. Comments start with the # symbol, and everything after the # symbol will be commented out.
Seems that's not the case for policy configs!

1views
2users
1 minread
1 / 4
Oct 2023