diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-01-07 19:42:51 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-01-07 19:42:51 +0000 |
commit | aa44e253f47089e249612c496df85798922ac546 (patch) | |
tree | 9448f185c1500c2e1ccaffe841a5342fd1829577 /share/www/script/couch_test_runner.js | |
parent | 3a1f041e07c75001cf52cbae1391dcd801c17396 (diff) |
cleanup patch for merge to trunk
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/account@896982 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/couch_test_runner.js')
-rw-r--r-- | share/www/script/couch_test_runner.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js index ed67d744..237f9312 100644 --- a/share/www/script/couch_test_runner.js +++ b/share/www/script/couch_test_runner.js @@ -164,10 +164,13 @@ function setupAdminParty(fun) { }, "admins"); } }); - } else { - // not a logged in admin. + } else if (userCtx.roles.indexOf("_admin") != -1) { + // admin party! readyToRun = true; fun(); + } else { + // not an admin + alert("Error: You need to be an admin to run the tests."); }; } }); |