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

using undefined instead of anonymous for non-logged in users

This commit is contained in:
Alex Kocharin 2013-10-11 09:53:54 +04:00
parent 3596a12eb7
commit 70f717a295
2 changed files with 3 additions and 3 deletions

View file

@ -106,7 +106,7 @@ function allow_action(package, who, action) {
for (var i in this.packages) {
if (minimatch.makeRe(i).exec(package)) {
return this.packages[i][action].reduce(function(prev, curr) {
if (curr === who || curr === 'all') return true;
if (curr === String(who) || curr === 'all') return true;
return prev;
}, false);
}

View file

@ -22,8 +22,8 @@ packages:
proxy_publish: server2
'*':
allow_access: test anonymous
allow_publish: test anonymous
allow_access: test undefined
allow_publish: test undefined
# this should not matter
testpkg: