Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Multiple sections type #179

Merged
merged 1 commit into from
Aug 28, 2021
Merged

feat: Multiple sections type #179

merged 1 commit into from
Aug 28, 2021

Conversation

Gabriel-403
Copy link
Contributor

1.configure it with multiple policies
2.Add relevant unit tests
3.fix the regular matching problem of RABC
4.Make regular matching more accurate and flexible
If you need multiple policy definitions or multiple matcher, you can use like p2, m2. In fact, all of the above four sections can use multiple types and the syntax is r+number, such as r2, e2. By default these four sections should correspond one to one. Such as your r2 will only use matcher m2 to match policies p2.

const enforceContext = new EnforceContext('r2', 'p2', 'e2', 'm2');
or
const enforceContext = new NewEnforceContext('2');

Signed-off-by: Gabriel-403 <1499015923@qq.com>
@nodece nodece merged commit 2966243 into casbin:v1 Aug 28, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants