OptimalBits / node_acl

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

[Fix] Projection issue, #279 #280

Open akshay9502 opened 5 years ago

ShaharyarAhmed commented 4 years ago

Kindly explain the change you had to make, and what problem it will solve.

I assume package.json change is done by mistake.

manast commented 4 years ago

Will it still work with older mongo versions?

akshay9502 commented 4 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

akshay9502 commented 4 years ago

as it does not deselect the _bucketname, we get the "_bucketname" in the role names

akshay9502 commented 4 years ago

yes it will work in the older versions as well