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

hi, guys, Is there any api can get all matching policies?
With the following policies:

p, alice, data1, read, allow
p, alice, data2, read, allow
p, data2_admin, data2, read, allow
p, data2_admin, data2, write, allow
p, alice, data2, write, deny
g, alice, data2_admin

request: alice, data2, read

There are 2 policies matched:
p, alice, data2, read, allow and p, data2_admin, data2, read, allow