casbin_model_v2.conf 310 B

123456789101112131415
  1. [request_definition]
  2. r = sub, obj, act
  3. [policy_definition]
  4. p = sub, obj, act
  5. [role_definition]
  6. g = _, _
  7. [policy_effect]
  8. e = some(where (p.eft == allow))
  9. [matchers]
  10. m = (p.sub == "*" || (r.sub == p.sub) || g(r.sub, p.sub)) && ((r.obj == p.obj) ||
  11. keyMatch2(r.obj, p.obj)) && (r.act == p.act || p.act == "*")