diff --git a/registry/app.js b/registry/app.js index d74bdd3..616a3c2 100644 --- a/registry/app.js +++ b/registry/app.js @@ -1183,9 +1183,14 @@ ddoc.validate_doc_update = function (newDoc, oldDoc, user, dbCtx) { return false } function isAdmin () { - if (dbCtx.admins.names.indexOf(user.name) !== -1) return true - for (var i=0;i= 0 }