Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove admin database access requirement (hopefully solved by #61) #60
I needed to do a bit more to get variety working with a user that only had access to the target db:
This fixes #40 at the expense of error reporting when the specified database is empty or does not exist.
Thank you very much for this. We have been thinking for some time about how to make Variety work for those without admin access.
And while that is important to us, I do also quite like the error messages we have, since they keep the learning curve shallow.
In a perfect world, we would provide the helpful messages when we have admin access, yet not fail when we don't.
Thanks Once More,
It should work with 2.4.x and 2.6.x branches of MongoDB.
@aolieman: could you please test Variety from pull request https://github.com/todvora/variety/blob/6a366b35bc84d75c866ad49994f56a85b86b7981/variety.js ? Does it work also with your permissions configuration? There should be
I'm going ahead and merging #61 since it's a "best of both worlds" solution. As Tomáš said, if you have a free moment let us know if the newest version of Variety resolves your issue without modification (or even more importantly, if it fails to).