From f0d9a01bccdaeb466c12c92057914bbfef59526c Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 15 Dec 2011 09:35:47 +0100 Subject: Imported Upstream version 2.0.2 --- s/strategy_single.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 's/strategy_single.cpp') 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 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" ); -- cgit v1.2.3