nyambati / express-acl

This is a express module that enables you to implement ACL with much ease
https://nyambati.github.io/express-acl/
MIT License
227 stars 51 forks source link

Dynamic roles based on database. #150

Closed mits87 closed 4 years ago

mits87 commented 4 years ago

Hello, a quick question. I have all ACLs in my DB and based on logged in user I have different roles (based on many conditions). Is it possible to pass dynamically a rules object or even better use some attribute like: rulesObjectName etc. to pass from where rules should be applied ?

Thank you in advance for your answer

Monir-Shembesh commented 3 years ago

Hi @mits87 , I am wondering if this is possible too? What database are you using as well as if I can pass the rules dynamically when the user tries to make a http request to one of my endpoints?

Thank you