OptimalBits / node_acl

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

updating to mongo 4.0 causes issue with select {_bucketname: 0}, not working #279

Open akshay9502 opened 5 years ago

akshay9502 commented 5 years ago

Mongoose version: 5.6.7 mongo: 4.0

in mongodb-backend, get function the select as the second parameter does not deselect _bucketname, thus in roles we even get _bucketname as role name

koresar commented 3 years ago

Fixed in my fork acl2 of this module. More info here: https://github.com/OptimalBits/node_acl/issues/285#issuecomment-688599945