phpmongodb / phpmongodb-1

http://www.phpmongodb.org
GNU General Public License v3.0
82 stars 39 forks source link

Added partial non-admin support #1

Open ineentho opened 10 years ago

ineentho commented 10 years ago

I tried to add some partial support for connecting to a database other than /admin with only read/write rights on the user.

It won't crash on the index page at least, and you can do some basic operations. You can, however, click on a system collection to generate a error.

One of the problems with this is that it will show number of documents as a ?, I am not sure how the API calls work when you don't have admin access.

The code was just whopped together since I don't have any knowledge on how your software, so feel free to tweak the changes to make them less uggly.