casbin / casbin.js

An authorization library that supports access control models like ACL, RBAC, ABAC in Frontend Javascript
https://casbin.org/docs/en/frontend
Apache License 2.0
160 stars 37 forks source link

feat: Extend multiple sections type of escapeAssertion #180

Closed Gabriel-403 closed 3 years ago

Gabriel-403 commented 3 years ago

At present, only p < int > is supported. We should consider more forms. For example, consider supporting P < string > to meet the following test cases r.attr.value == p.attr r.attp.value || p.attr r.attp.value && p.attr r.attp.value >p.attr r.attp.value <p.attr r.attp.value +p.attr r.attp.value -p.attr r.attp.value *p.attr r.attp.value /p.attr !r.attp.value /p.attr' g(r.sub, p.sub) == p.attr g(r.sub,p.sub) == p.attr (r.attp.value || p.attr)p.u

nodece commented 3 years ago

LGTM

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.0.0-beta.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: