-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Golang backend ( CasbinJsGetPermissionForUser ) not working with casbin.js ( react ) #66
Comments
@closetool @Zxilly plz do this together. |
@Kliton As for now, casbin.js is a wrapper of node-casbin. You can use node-casbin directly. |
Ok i will try |
@Kliton I have saw the Official documents and source code of casbin.js. If you want to use "manual" model. your permission style should like this
if you use "auto" model ,you should write like this
so you can use the 'auto' model when get restult from backend This's my understanding. If there is any mistake ,please correct it |
🎉 This issue has been resolved in version 0.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The problem is that
CasbinJsGetPermissionForUser
on backend reeturns this:My policies are
My model is:
On frontend side ( react with casbin.js )
I'm doing this:
Why is not working?
The text was updated successfully, but these errors were encountered: