OptimalBits / node_acl

Access control lists for node applications
2.62k stars 369 forks source link

added customMiddleware #239

Open shaikhriyaz opened 7 years ago

shaikhriyaz commented 7 years ago

added new middleware that takes user, permissions, and resources as parameter and process them.

manast commented 7 years ago

Thanks. Although I appreciate the formatting improvements, they hide the real changes in this PR. So in order to accept this I would need a PR with only the formatting and no other changes, and then a new PR with the improvements in the middleware.

shaikhriyaz commented 7 years ago

Okay. I will do that as soon as possible.

shaikhriyaz commented 7 years ago

Can give a look now. I have one question, do I need to add an error handler for the middleware?