Hi Nitin, Thanks for your comment, great to hear you found the article helpful. I'll take your reply into consideration and see if I can create something that'll work together with Angular 2+.
Hi Tamzid,
I'm glad you liked the article That should be possible although I'd recommend you separate concerns
At a glance, a way to this would be to send an object as the first parameter of the `grantAccess` method e.g ...`userController.grantAccess({ updateAny : true, updateOwn : true }, 'profile');`
However, If you use the above method, you'd have to make quite some changes to the `userController.grantAccess` method to handle any alternative flows. If you want to discuss more about it you could send me an email, thanks!.
Hi Jorge,
Thanks a lot for the feedback, happy you found the article useful. You can think of "profile" as a custom resource. We use the word "profile" to indicate a user's profile, any other word could be used as well, it isn't necessarily fixed or imported from anywhere else.
Then we specify that only certain roles should be allowed to perform a particular action on that resource(in this case the user profile). E.g A user with a "supervisor" role can view a user's profile but only a user with the "admin" role should be allowed to update or delete a profile Is that a bit clearer?
Hello Jeremiah,
Thanks a lot for your kind words and for the feedback
I'll certainly take your request under consideration and would let you know when another article of such is in the works, thank you.
By Signing In \ Signing Up, you agree to our privacy policy
We use cookies to offer you a better browsing experience, analyze site traffic, personalize content. Read how we use cookies. By using this site you consent to our use of cookies.
Implementing Role-Based Access Control in a Node.js application
Hi Vedret, Here's a link to the source code: https://github.com/devgson/soshace-rbac
Implementing Role-Based Access Control in a Node.js application
Hi Sebastianus, I believe this error can be solved by explicitly specifying a type for that variable
Implementing Role-Based Access Control in a Node.js application
Hi Nitin, Thanks for your comment, great to hear you found the article helpful. I'll take your reply into consideration and see if I can create something that'll work together with Angular 2+.
Implementing Role-Based Access Control in a Node.js application
Hi Tamzid, I'm glad you liked the article That should be possible although I'd recommend you separate concerns At a glance, a way to this would be to send an object as the first parameter of the `grantAccess` method e.g ...`userController.grantAccess({ updateAny : true, updateOwn : true }, 'profile');` However, If you use the above method, you'd have to make quite some changes to the `userController.grantAccess` method to handle any alternative flows. If you want to discuss more about it you could send me an email, thanks!.
Implementing Role-Based Access Control in a Node.js application
Hi Jorge, Thanks a lot for the feedback, happy you found the article useful. You can think of "profile" as a custom resource. We use the word "profile" to indicate a user's profile, any other word could be used as well, it isn't necessarily fixed or imported from anywhere else. Then we specify that only certain roles should be allowed to perform a particular action on that resource(in this case the user profile). E.g A user with a "supervisor" role can view a user's profile but only a user with the "admin" role should be allowed to update or delete a profile Is that a bit clearer?
Implementing Role-Based Access Control in a Node.js application
Hi Marawan, Not yet, but I'll see if I can work on that
Implementing Role-Based Access Control in a Node.js application
Hello, If possible, could you send a link to your repo where your code is hosted or some snapshots of your code
Building a Telegram Bot with Node.js
Hello Nikita, Thanks for your feedback!, happy you liked the article. I'll certainly take that under consideration.
Implementing Role-Based Access Control in a Node.js application
Hello Jeremiah, Thanks a lot for your kind words and for the feedback I'll certainly take your request under consideration and would let you know when another article of such is in the works, thank you.
Implementing Role-Based Access Control in a Node.js application
Hello Adrien, Happy to hear you found the article helpful, thanks for the feedback