Skip to content

Commit

Permalink
Fix issue #228
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfsolter committed May 18, 2016
1 parent 63a42fb commit 4124f18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/router.js
Expand Up @@ -77,6 +77,8 @@ var router = function (config) {
delete req.session.error;
}

if (config.mongodb.admin !== true) return next();

mongo.updateDatabases(mongo.adminDb, function (databases) {
mongo.databases = databases;
res.locals.databases = mongo.databases;
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,5 +1,5 @@
{
"version": "0.30.56",
"version": "0.30.57",
"author": "https://github.com/mongo-express",
"name": "mongo-express",
"description": "Web-based admin interface for MongoDB",
Expand Down

0 comments on commit 4124f18

Please sign in to comment.