diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-07-31 18:32:24 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-08-01 14:12:09 -0400 |
commit | 211099e4bb2709d5fbd501d0bd44b49a77c2435b (patch) | |
tree | e2b395c68cc2b6eb2a31eab3fc69b9cc460b2f0e /jstests/auth/basic_role_auth.js | |
parent | bdad6392922a467eaeda060b69471557beb6a955 (diff) | |
download | mongo-211099e4bb2709d5fbd501d0bd44b49a77c2435b.tar.gz |
SERVER-6246 Restrict direct removes from system.users, add a shell helper to use the removeUser command, and update tests to use the helper
Diffstat (limited to 'jstests/auth/basic_role_auth.js')
-rw-r--r-- | jstests/auth/basic_role_auth.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/basic_role_auth.js b/jstests/auth/basic_role_auth.js index ff57511a54e..59f4e0a3d93 100644 --- a/jstests/auth/basic_role_auth.js +++ b/jstests/auth/basic_role_auth.js @@ -192,7 +192,7 @@ var testOps = function(db, allowedActions) { checkErr(allowedActions.hasOwnProperty('user_w'), function() { db.addUser('a', 'a'); - db.system.users.remove({ user: 'a' }); + db.removeUser('a'); }, db); // Test for kill cursor |