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
matchingForGFunction in nodejs #298
Comments
You can find it at: https://casbin.org/docs/en/rbac#use-pattern-matching-in-rbac node-casbin/src/rbac/defaultRoleManager.ts Line 161 in 6f46f49
|
@sagilio Thank you for your answer. I had two named grouping functions so I ended up using:
I think it would be nice if an example of using this for nodejs was in the documentation too. |
@Zxilly @Gabriel-403 plz add the Node.js code example to: https://casbin.org/docs/en/rbac#use-pattern-matching-in-rbac |
is this issue still up? |
@Shivansh-yadav13 yeah, plz add to docs. |
First of all it's a wonderful library and thank you so much for sharing it with us.
I am trying to implement RBAC with domains and 'all' patterns matching using nodejs but I have not been able to figure out how to tell casbin to use which function for g matching. In the online editor I see that I need to specify:
but I don't know how and where I need to pass this config. Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: