flash-oss / node_acl

Access control lists for node applications
MIT License
63 stars 9 forks source link

MonboDB >v5 driver support #17

Closed toni-lahnalampi closed 10 months ago

toni-lahnalampi commented 10 months ago

Hi, and thanks for your valuable work with this fork!

I noticed, that Mongodb >v5 driver has dropped callback apis and acl2 does not support it yet.

I made an implementation: https://github.com/tonila/node_acl_firebase/blob/acl2_mongodb_promise_api_backend/lib/mongodb-backend.js

MongoDB tests pass:

npm run mongo_test
npm run test_mongo_single

I can make a pull request, if requested.

koresar commented 10 months ago

Thank you very much. I request!