From 8840ac4c1f6e08378b31dd69439971c2cc59c303 Mon Sep 17 00:00:00 2001 From: Alex Kocharin Date: Mon, 3 Feb 2014 00:50:38 +0400 Subject: [PATCH] removing bad statement --- lib/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/index.js b/lib/index.js index 9a70450ec..86e5b88ed 100644 --- a/lib/index.js +++ b/lib/index.js @@ -198,9 +198,6 @@ module.exports = function(config_hash) { }) app.put('/-/user/:org_couchdb_user/-rev/*', function(req, res, next) { - // can't put 'org.couchdb.user' in route address for some reason - if (req.params.argument.split(':')[0] !== 'org.couchdb.user') return next('route') - if (req.remoteUser == null) { res.status(403) return res.send({