UI libraries like React Native Paper and React Native Elements offer pre-developed components that help us deliver our React Native projects faster.
Although Docker remains the dominant platform for containerization and container management, it’s good to know about different tools that may work better for certain use cases.
Add to your JavaScript knowledge of shortcuts by mastering the ternary operator, so you can write cleaner code that your fellow developers will love.
Learn how to efficiently bundle your TypeScript package with tsup. This guide covers setup, custom output extensions, and best practices for optimized, production-ready builds.
2 Replies to "How to use AccessControl for RBAC and ABAC in Node.js"
Great post & thank you for sharing, one of the good blogs to read abou tAccessControl for RBAC
I’m glad I found this, thanks Godwin!
Few comments/questions:
– AccessControl was last published in February 2018. Is it still active?
– I was confused until I realized that “post” was a resource and not a route or http method. It would be less confusing if the example resource was “article” or “video.”
– At the beginning it states “A user can have multiple roles” but the example with Express contains “ac.can(req.user.role).readAny(‘post’)”. Can req.user.role be an array of roles?
– There is a JSON typo: ‘read:any’: [‘*’, ‘!id]