1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

modify varable name to accord with origin code

This commit is contained in:
Meeeeow 2017-04-22 16:33:56 +08:00
parent cb37b38ee4
commit 0a769008cf

@ -80,11 +80,11 @@ module.exports.allow = function(auth) {
return function(action) {
return function(req, res, next) {
req.pause();
auth['allow_'+action](req.params.package, req.remote_user, function(error, is_allowed) {
auth['allow_'+action](req.params.package, req.remote_user, function(error, allowed) {
req.resume();
if (error) {
next(error)
} else if (is_allowed) {
} else if (allowed) {
next()
} else {
// last plugin (that's our built-in one) returns either