mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
parent
d370e5a6a9
commit
7c822d06f6
1 changed files with 3 additions and 1 deletions
|
@ -50,7 +50,9 @@ module.exports = function(config, auth, storage) {
|
|||
if (err) throw err // that function shouldn't produce any
|
||||
async.filterSeries(packages, function(package, cb) {
|
||||
auth.allow_access(package.name, req.remote_user, function(err, allowed) {
|
||||
cb(!err && allowed)
|
||||
setImmediate(function () {
|
||||
cb(!err && allowed)
|
||||
})
|
||||
})
|
||||
}, function(packages) {
|
||||
next(template({
|
||||
|
|
Loading…
Reference in a new issue