mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Merge branch 'master' of github.com:verdaccio/verdaccio
This commit is contained in:
commit
17e81b24b9
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Auth {
|
||||||
const allow_action = function(action) {
|
const allow_action = function(action) {
|
||||||
return function(user, pkg, cb) {
|
return function(user, pkg, cb) {
|
||||||
let ok = pkg[action].reduce(function(prev, curr) {
|
let ok = pkg[action].reduce(function(prev, curr) {
|
||||||
if (user.groups.indexOf(curr) !== -1) return true;
|
if (user.name === curr || user.groups.indexOf(curr) !== -1) return true;
|
||||||
return prev;
|
return prev;
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue