Open taksedo opened 8 months ago
Want to prioritize this issue? Try:
Describe the bug The case from the doc with to types of policies (p and p2) doesn't work on https://editor.casbin.org.
Link to the case: https://editor.casbin.org/#2YLC95Q57
To Reproduce Establish following Model:
[request_definition] r = sub, obj, act [policy_definition] p = sub, obj, act p2 = sub, act [policy_effect] e = some(where (p.eft == allow)) [matchers] m = r.sub == p.sub && r.obj == p.obj && r.act == p.act
and Policy:
p, alice, data1, read p2, bob, write-all-objects
Requests:
alice, data1, read bob, data1, write-all-objects
Expected behavior all requests should return true, but 2nd request returns false
Screenshots
@tangyang9464 @JalinWang
@nodece @Shivansh-yadav13
@taksedo the Casbin editor is based on Node.js version Casbin, which currently doesn't support p2 yet. This Go Casbin supports it.
p2
Thank you!
Want to prioritize this issue? Try:
Describe the bug The case from the doc with to types of policies (p and p2) doesn't work on https://editor.casbin.org.
Link to the case: https://editor.casbin.org/#2YLC95Q57
To Reproduce Establish following Model:
and Policy:
Requests:
Expected behavior all requests should return true, but 2nd request returns false
Screenshots