0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

removing bad statement

This commit is contained in:
Alex Kocharin 2014-02-03 00:50:38 +04:00
parent 9f662a69e1
commit 8840ac4c1f

View file

@ -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({