-
Notifications
You must be signed in to change notification settings - Fork 178
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
Expect Object from getGrants #10
Comments
Nice catch. Thanks. I'll fix this shortly but if this is too urgent pls use Option to export grants as an object or array was already in todo list. I'll see if it'll make its way to this release. |
wow, thanks for the quick reply! Your solution works :) Before using setGrants I was seeing:
when checking permissions like so:
I'm trying to create an equivalence between your library and an Ethereum Smart contract, I imagine I will have many more questions :) |
You're welcome. I don't have too much knowledge about Ethereum though. v1.5.2 is released with a fix. I need time for adding support for exporting grants as a flat list. This is a bit tricky bec. of hierarchical role inheritance. Closing this. Pls re-open or create a new issue if needed. |
Outputs:
I am expecting an object, like in the tests:
https://github.com/onury/accesscontrol/blob/master/lib/AccessControl.js#L130
When i mix my approach:
I get this mixd output:
I guess I am expecting the types to be the same.
Really, I'd love to export as a grantList or an Object, depending on the situation.
The text was updated successfully, but these errors were encountered: