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

Hello
I’m using jCasbin in RBAC mode and I’m facing an intermittent issue where an enforcement that should return true sometimes returns false.

Model (matcher)
m = g(r.sub, p.sub)
&& customFct(r.obj, p.obj)
&& g2(r.act, p.act)
&& g(r.sub, 'myGroup')

Policy
p, myGroup, resource, myResp
g, user, myGroup

Request
r, user, resource, myResp

Most of the time, enforcement works correctly, but sometimes the enforcer starts returning incorrect evaluation. on perm that myResp inherits.
This usually happens after some time under load, not immediately at startup.

I’d really appreciate guidance for debugging

3views
2users
1 minread
1 / 3
Dec 2025