diff options
author | Antonin Kral <a.kral@bobek.cz> | 2011-12-15 09:35:47 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2011-12-15 09:35:47 +0100 |
commit | f0d9a01bccdaeb466c12c92057914bbfef59526c (patch) | |
tree | 7679efa1f0daf7d1d906882a15dc77af6b7aef32 /s/strategy_single.cpp | |
parent | 5d342a758c6095b4d30aba0750b54f13b8916f51 (diff) | |
download | mongodb-f0d9a01bccdaeb466c12c92057914bbfef59526c.tar.gz |
Imported Upstream version 2.0.2
Diffstat (limited to 's/strategy_single.cpp')
-rw-r--r-- | s/strategy_single.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/s/strategy_single.cpp b/s/strategy_single.cpp index 012be5f..fc206e5 100644 --- a/s/strategy_single.cpp +++ b/s/strategy_single.cpp @@ -182,6 +182,9 @@ namespace mongo { vector<Shard> shards; if ( strcmp( ns , "inprog" ) == 0 ) { + + r.checkAuth(); + Shard::getAllShards( shards ); BSONArrayBuilder arr( b.subarrayStart( "inprog" ) ); @@ -219,6 +222,9 @@ namespace mongo { arr.done(); } else if ( strcmp( ns , "killop" ) == 0 ) { + + r.checkAuth(); + BSONElement e = q.query["op"]; if ( strstr( r.getns() , "admin." ) != 0 ) { b.append( "err" , "unauthorized" ); |