Model
[request_definition]
r = sub, obj, act

[policy_definition]
p = sub, obj, act

[policy_effect]
e = some(where (p.eft == allow))

[matchers]
m = r.sub == p.sub && r.obj == p.obj && r.act == p.act
Policy
p, alice, data1, read
p, bob, data2, write
Request
alice, data1, read
Enforcement Result
Why this result
true Reason: ["alice","data1","read"]
Done in 115.90ms
GitHub starsCopyright © 2025 Casbin contributors.